Resurrect yjit_hook

This commit is contained in:
Takashi Kokubun 2025-04-18 20:04:12 +09:00
parent 338b9c2064
commit 50ae35054b
Notes: git 2025-04-18 13:47:35 +00:00

6
ruby.c
View File

@ -1823,9 +1823,11 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
} }
#endif #endif
#if USE_YJIT
// Call yjit_hook.rb after rb_yjit_init() to use `RubyVM::YJIT.enabled?` // Call yjit_hook.rb after rb_yjit_init() to use `RubyVM::YJIT.enabled?`
//void Init_builtin_yjit_hook(); void Init_builtin_yjit_hook();
//Init_builtin_yjit_hook(); Init_builtin_yjit_hook();
#endif
ruby_set_script_name(opt->script_name); ruby_set_script_name(opt->script_name);
require_libraries(&opt->req_list); require_libraries(&opt->req_list);