mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cYjitCodeComment is only defined if we're not in debugging mode
This commit fixes a build error. If we build in release mode (IOW *without* RUBY_DEBUG), then this constant isn't defined. Release mode builds are required by yjit-bench
This commit is contained in:
parent
60496b6666
commit
ac88c61ed8
1 changed files with 2 additions and 0 deletions
|
@ -1069,7 +1069,9 @@ rb_yjit_init(struct rb_yjit_options *options)
|
|||
rb_define_alloc_func(cYjitDisasm, yjit_disasm_init);
|
||||
rb_define_method(cYjitDisasm, "disasm", yjit_disasm, 2);
|
||||
cYjitDisasmInsn = rb_struct_define_under(cYjitDisasm, "Insn", "address", "mnemonic", "op_str", NULL);
|
||||
#if RUBY_DEBUG
|
||||
cYjitCodeComment = rb_struct_define_under(cYjitDisasm, "Comment", "address", "comment");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (RUBY_DEBUG && rb_yjit_opts.gen_stats) {
|
||||
|
|
Loading…
Add table
Reference in a new issue