Skip to content

Commit 9af41c4

Browse files
authored
Merge pull request ruby#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy