ruby: disable yjit on cross (#449938)
This commit is contained in:
@@ -57,9 +57,13 @@ let
|
||||
}:
|
||||
let
|
||||
ver = version;
|
||||
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
|
||||
# https://github.com/ruby/ruby/blob/v3_2_2/yjit.h#L21
|
||||
yjitSupported =
|
||||
stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64);
|
||||
!isCross
|
||||
&& (
|
||||
stdenv.hostPlatform.isx86_64 || (!stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isAarch64)
|
||||
);
|
||||
rubyDrv = lib.makeOverridable (
|
||||
{
|
||||
stdenv,
|
||||
|
||||
Reference in New Issue
Block a user