mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Call libzjit from CRuby
This commit is contained in:
parent
bb9b45a8dd
commit
cabfa3bfe1
Notes:
git
2026-01-15 08:21:04 +00:00
3
ruby.c
3
ruby.c
@ -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;
|
||||
|
||||
@ -10,5 +10,6 @@ extern "C" fn zjit_init() {
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rb_zjit_parse_option() -> bool {
|
||||
println!("parsing zjit");
|
||||
false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user