Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9af41c4

Browse files
authored
Merge pull request #38 from Shopify/flavorjones-fix-undefined-reference
fix: allow make to complete when RUBY_DEBUG is not set
2 parents ac6c618 + cc7ac26 commit 9af41c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ujit_codegen.c

+2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ ujit_gen_exit(jitstate_t* jit, ctx_t* ctx, codeblock_t* cb, VALUE* exit_pc)
6969
mov(cb, member_opnd(REG_CFP, rb_control_frame_t, pc), RAX);
7070

7171
// Accumulate stats about interpreter exits
72+
#if RUBY_DEBUG
7273
if (rb_ujit_opts.gen_stats) {
7374
mov(cb, RDI, const_ptr_opnd(exit_pc));
7475
call_ptr(cb, RSI, (void *)&rb_ujit_count_side_exit_op);
7576
}
77+
#endif
7678

7779
// Write the post call bytes
7880
cb_write_post_call_bytes(cb);

0 commit comments

Comments
 (0)