tests.makeBinaryWrapper: avoid same-triple cross

We shouldn't try compiling to aarch64-unknown-linux-gnu from
aarch64-unknown-linux-gnu, because that tends to confuse things and is
not representative of actual cross compilation usage.
This commit is contained in:
Alyssa Ross 2023-04-19 18:34:47 +00:00
parent a21f3437fc
commit 887edae254
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -52,7 +52,7 @@ let
"prefix"
"suffix"
] makeGoldenTest // lib.optionalAttrs (! stdenv.isDarwin) {
cross = pkgsCross.aarch64-multiplatform.callPackage ./cross.nix { };
cross = pkgsCross.${if stdenv.buildPlatform.isAarch64 then "gnu64" else "aarch64-multiplatform"}.callPackage ./cross.nix { };
};
in