diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-09-15 11:36:44 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:41 -0400 |
commit | 121d8f47274d53a013f9306a3e53a6f37e66a8e5 (patch) | |
tree | 4a4b088f38cd3e819080277cbba0d6cc786bce76 /yjit_iface.h | |
parent | a71590e6814a488a7bfc7e86a59f6782c8a5d276 (diff) |
Compile out declaration for runtime stats on non stats builds
Checked on default build, RUBY_DEBUG build, and YJIT_STATS build.
Diffstat (limited to 'yjit_iface.h')
-rw-r--r-- | yjit_iface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yjit_iface.h b/yjit_iface.h index a0fcb931a2..b53059b6da 100644 --- a/yjit_iface.h +++ b/yjit_iface.h @@ -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); |