Call libzjit from CRuby
This commit is contained in:
parent
bb9b45a8dd
commit
cabfa3bfe1
Notes:
git
2025-04-18 13:49:52 +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)) {
|
else if (is_option_with_optarg("zjit", '-', true, false, false)) {
|
||||||
FEATURE_SET(opt->features, FEATURE_BIT(yjit));
|
FEATURE_SET(opt->features, FEATURE_BIT(yjit));
|
||||||
// TODO
|
extern bool rb_zjit_parse_option();
|
||||||
|
rb_zjit_parse_option();
|
||||||
}
|
}
|
||||||
else if (strcmp("yydebug", s) == 0) {
|
else if (strcmp("yydebug", s) == 0) {
|
||||||
if (envopt) goto noenvopt_long;
|
if (envopt) goto noenvopt_long;
|
||||||
|
@ -10,5 +10,6 @@ extern "C" fn zjit_init() {
|
|||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rb_zjit_parse_option() -> bool {
|
pub extern "C" fn rb_zjit_parse_option() -> bool {
|
||||||
|
println!("parsing zjit");
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user