ZJIT: Propagate disasm feature to ZJIT and YJIT (#13372)

Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
This commit is contained in:
Takashi Kokubun 2025-05-19 10:34:29 -07:00 committed by GitHub
parent 93ce95d46c
commit a7ef9a44a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-05-19 17:34:44 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ crate-type = ["staticlib"]
path = "jit.rs"
[features]
disasm = []
disasm = ["yjit?/disasm", "zjit?/disasm"]
runtime_checks = []
yjit = [ "dep:yjit" ]
zjit = [ "dep:zjit" ]

View File

@ -3972,6 +3972,7 @@ AS_CASE(["${ZJIT_SUPPORT}"],
[yes], [
],
[dev], [
rb_cargo_features="$rb_cargo_features,disasm"
JIT_CARGO_SUPPORT=dev
AC_DEFINE(RUBY_DEBUG, 1)
])