mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-13 11:21:24 +02:00
Followed up https://github.com/rbenv/ruby-build/pull/2028
This commit is contained in:
parent
5f8eab95a6
commit
ccce79a5a7
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" ] || [ "$(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…
Reference in a new issue