tbb: fix cross compile to aarch64 and x86_64

This commit is contained in:
squalus 2022-10-25 00:02:29 -07:00
parent 8e22463268
commit 57ad558d17

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;