diff options
author | Alan Wu <[email protected]> | 2025-02-06 14:57:18 -0500 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:56 +0900 |
commit | 14a4edaea61a49da0c93ce53d76bbecba2df7448 () | |
tree | efdf2c1f885fe1d6bcc7211889ce10fffe99e398 /yjit | |
parent | 35aec9ff680904ebe1067d40c18e2b75fd1d0b7f (diff) |
bindgen works in --enable-zjit=dev mode.
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r-- | yjit/bindgen/src/main.rs | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -8,7 +8,7 @@ use std::env; use std::path::PathBuf; const SRC_ROOT_ENV: &str = "YJIT_SRC_ROOT_PATH"; -const GLUE_C_FILE: &str = "BINDGEN_GLUE_C_FILE"; fn main() { // Path to repo is a required input for supporting running `configure` @@ -22,7 +22,8 @@ fn main() { ); let src_root = PathBuf::from(src_root); - let c_file = env::var(GLUE_C_FILE).expect(GLUE_C_FILE); assert!( src_root.is_dir(), @@ -313,13 +314,14 @@ fn main() { .allowlist_function("rb_iseq_(get|set)_yjit_payload") .allowlist_function("rb_iseq_pc_at_idx") .allowlist_function("rb_iseq_opcode_at_pc") - .allowlist_function("rb_yjit_reserve_addr_space") - .allowlist_function("rb_yjit_mark_writable") - .allowlist_function("rb_yjit_mark_executable") - .allowlist_function("rb_yjit_mark_unused") - .allowlist_function("rb_yjit_get_page_size") - .allowlist_function("rb_yjit_iseq_builtin_attrs") - .allowlist_function("rb_yjit_iseq_inspect") .allowlist_function("rb_yjit_builtin_function") .allowlist_function("rb_set_cfp_(pc|sp)") .allowlist_function("rb_yjit_multi_ractor_p") @@ -491,7 +493,7 @@ fn main() { .expect("Unable to generate bindings"); let mut out_path: PathBuf = src_root; - out_path.push("yjit"); out_path.push("src"); out_path.push("cruby_bindings.inc.rs"); |