Unverified Commit 2a8cde92 authored by Hiroshi SHIBATA's avatar Hiroshi SHIBATA Committed by GitHub
Browse files

Merge pull request #2029 from rbenv/enable-yjit-again2

Enable YJIT only x86_64 and arm64
parents 5f8eab95 373e71aa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.