Skip to content

Commit 50ae350

Browse files
committed
Resurrect yjit_hook
1 parent 338b9c2 commit 50ae350

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ruby.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,9 +1823,11 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
18231823
}
18241824
#endif
18251825

1826+
#if USE_YJIT
18261827
// Call yjit_hook.rb after rb_yjit_init() to use `RubyVM::YJIT.enabled?`
1827-
//void Init_builtin_yjit_hook();
1828-
//Init_builtin_yjit_hook();
1828+
void Init_builtin_yjit_hook();
1829+
Init_builtin_yjit_hook();
1830+
#endif
18291831

18301832
ruby_set_script_name(opt->script_name);
18311833
require_libraries(&opt->req_list);

0 commit comments

Comments
 (0)