Skip to content

Commit 6b820c1

Browse files
authored
Merge pull request #223 from Shopify/runtime-counters-stats-only
Compile out declaration for runtime stats on non stats builds
2 parents a81b232 + 3f30fa4 commit 6b820c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yjit_iface.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@ YJIT_DECLARE_COUNTERS(
9999

100100
#undef YJIT_DECLARE_COUNTERS
101101

102+
RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
103+
102104
#endif // YJIT_STATS
103105

104106
RUBY_EXTERN struct rb_yjit_options rb_yjit_opts;
105-
RUBY_EXTERN struct rb_yjit_runtime_counters yjit_runtime_counters;
106107

107108
void yjit_map_addr2insn(void *code_ptr, int insn);
108109
VALUE *yjit_iseq_pc_at_idx(const rb_iseq_t *iseq, uint32_t insn_idx);

0 commit comments

Comments
 (0)