Merge pull request #197676 from squalus/tbb-cross-aarch64

tbb: fix cross compile to aarch64
This commit is contained in:
Pierre Bourdon 2022-10-31 12:24:11 +01:00 committed by GitHub
commit 3c6a81eb60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,10 @@ stdenv.mkDerivation rec {
makeFlags = lib.optionals stdenv.cc.isClang [
"compiler=clang"
];
] ++ (lib.optional (stdenv.buildPlatform != stdenv.hostPlatform)
(if stdenv.hostPlatform.isAarch64 then "arch=arm64"
else if stdenv.hostPlatform.isx86_64 then "arch=intel64"
else throw "Unsupported cross architecture"));
enableParallelBuilding = true;