Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9af41c4

Browse files
authoredFeb 10, 2021
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

Lines changed: 2 additions & 0 deletions
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)
Please sign in to comment.