mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #197676 from squalus/tbb-cross-aarch64
tbb: fix cross compile to aarch64
This commit is contained in:
commit
3c6a81eb60
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user