Unverified Commit 3c6a81eb authored by Pierre Bourdon's avatar Pierre Bourdon Committed by GitHub
Browse files

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

tbb: fix cross compile to aarch64
parents 1093c9b4 57ad558d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;