Call libzjit from CRuby

This commit is contained in:
Takashi Kokubun 2025-02-06 11:15:22 -05:00
parent bb9b45a8dd
commit cabfa3bfe1
Notes: git 2025-04-18 13:49:52 +00:00
2 changed files with 3 additions and 1 deletions

3
ruby.c
View File

@ -1455,7 +1455,8 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
}
else if (is_option_with_optarg("zjit", '-', true, false, false)) {
FEATURE_SET(opt->features, FEATURE_BIT(yjit));
// TODO
extern bool rb_zjit_parse_option();
rb_zjit_parse_option();
}
else if (strcmp("yydebug", s) == 0) {
if (envopt) goto noenvopt_long;

View File

@ -10,5 +10,6 @@ extern "C" fn zjit_init() {
#[no_mangle]
pub extern "C" fn rb_zjit_parse_option() -> bool {
println!("parsing zjit");
false
}