stxxl: fix build on darwin

Do not enable OpenMP support on Darwin. Since GNU Parallel requires
OpenMP, also disable it on Darwin.
This commit is contained in:
Sebastián Mancilla 2021-11-18 13:43:52 -03:00
parent 8ea3df51cd
commit 53fd52dca9
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
, stdenv
, fetchFromGitHub
, cmake
, parallel ? true
, parallelSupport ? (!stdenv.isDarwin)
}:
let
@ -25,11 +25,12 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=OFF"
(mkFlag parallel "USE_GNU_PARALLEL")
(mkFlag parallelSupport "USE_GNU_PARALLEL")
(mkFlag parallelSupport "USE_OPENMP")
];
passthru = {
inherit parallel;
inherit parallelSupport;
};
meta = with lib; {

View File

@ -19675,7 +19675,7 @@ with pkgs;
StormLib = callPackage ../development/libraries/StormLib { };
stxxl = callPackage ../development/libraries/stxxl { parallel = true; };
stxxl = callPackage ../development/libraries/stxxl { };
sqlite = lowPrio (callPackage ../development/libraries/sqlite { });