mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-29 16:21:01 +01:00
Merge pull request #2029 from rbenv/enable-yjit-again2
Enable YJIT only x86_64 and arm64
This commit is contained in:
commit
2a8cde928b
1 changed files with 3 additions and 0 deletions
|
|
@ -1279,6 +1279,9 @@ build_package_enable_yjit() {
|
|||
return 0
|
||||
fi
|
||||
|
||||
# If we aren't on x86_64 and arm64, don't enable YJIT
|
||||
[ "$(uname -m)" = "x86_64" -o "$(uname -m)" = "arm64" ] || return 0
|
||||
|
||||
local rustc_ver="$(rustc --version 2>/dev/null)"
|
||||
[ -n "$rustc_ver" ] || return 0
|
||||
# Some kind of built-in bash comparison for dotted version strings would be awesome.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue