1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Compile out declaration for runtime stats on non stats builds

Checked on default build, RUBY_DEBUG build, and YJIT_STATS build.
This commit is contained in:
Alan Wu 2021-09-15 11:36:44 -04:00
parent a71590e681
commit 121d8f4727

View file

@ -99,10 +99,11 @@ YJIT_DECLARE_COUNTERS(
#undef YJIT_DECLARE_COUNTERS
RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
#endif // YJIT_STATS
RUBY_EXTERN struct rb_yjit_options rb_yjit_opts;
RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
void yjit_map_addr2insn(void *code_ptr, int insn);
VALUE *yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx);