Commit graph

7 commits

Author SHA1 Message Date
Alan Wu
1fed568e3e ZJIT: Add --allow-multiple-definition for make zjit-test 2025-05-21 01:22:55 +09:00
Alan Wu
92b218fbc3 YJIT: ZJIT: Allow both JITs in the same build
This commit allows building YJIT and ZJIT simultaneously, a "combo
build". Previously, `./configure --enable-yjit --enable-zjit` failed. At
runtime, though, only one of the two can be enabled at a time.

Add a root Cargo workspace that contains both the yjit and zjit crate.
The common Rust build integration mechanisms are factored out into
defs/jit.mk.

Combo YJIT+ZJIT dev builds are supported; if either JIT uses
`--enable-*=dev`, both of them are built in dev mode.

The combo build requires Cargo, but building one JIT at a time with only
rustc in release build remains supported.
2025-05-15 00:39:03 +09:00
Alan Wu
95904e2092 reorder libminiruby link flags. Now works on aarch64 linux 2025-04-18 21:52:58 +09:00
Alan Wu
20ec3c8033 add make zjit-test 2025-04-18 21:52:57 +09:00
Alan Wu
b30c8ddfc7 cargo:rustc-link-lib=static:-bundle needs 1.63 2025-04-18 21:52:57 +09:00
Alan Wu
4326b0cece boot_vm boots and runs 2025-04-18 21:52:57 +09:00
Alan Wu
ea9b23a2cb can link and run p RubyVM::ISeq, hardcoded paths, needs more init 2025-04-18 21:52:57 +09:00