зеркало из https://github.com/github/ruby.git
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:
Родитель
60496b6666
Коммит
ac88c61ed8
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче