ruby: disable yjit on cross (#449938)

This commit is contained in:
Colin
2025-10-13 07:18:43 +00:00
committed by GitHub

View File

@@ -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,