From 121d8f47274d53a013f9306a3e53a6f37e66a8e5 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 15 Sep 2021 11:36:44 -0400 Subject: Compile out declaration for runtime stats on non stats builds Checked on default build, RUBY_DEBUG build, and YJIT_STATS build. --- yjit_iface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'yjit_iface.h') 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); -- cgit v1.2.3