Skip to content

Sync from ruby/ruby#32

Merged
peterzhu2118 merged 4 commits into
mainfrom
sync-ruby-core
May 20, 2025
Merged

Sync from ruby/ruby#32
peterzhu2118 merged 4 commits into
mainfrom
sync-ruby-core

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented May 20, 2025

No description provided.

XrXr and others added 4 commits May 20, 2025 13:14
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.
The table is global so accesses must be synchronized.
@peterzhu2118
Copy link
Copy Markdown
Member

Thank you!

@peterzhu2118 peterzhu2118 merged commit 447eced into main May 20, 2025
2 of 20 checks passed
@peterzhu2118 peterzhu2118 deleted the sync-ruby-core branch May 20, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants