Commit 261db7ef authored by FliegendeWurst's avatar FliegendeWurst
Browse files

llvmPackages.openmp: fix cross build

parent d7104f18
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
, clang-unwrapped
, perl
, pkg-config
, python3
, version
, devExtraCmakeFlags ? []
}:
@@ -45,6 +46,7 @@ stdenv.mkDerivation (rec {

  nativeBuildInputs = [
    cmake
    python3.pythonOnBuildForHost
  ] ++ lib.optionals (lib.versionAtLeast release_version "15") [
    ninja
  ] ++ [ perl ] ++ lib.optionals (lib.versionAtLeast release_version "14") [
@@ -53,6 +55,7 @@ stdenv.mkDerivation (rec {

  buildInputs = [
    (if stdenv.buildPlatform == stdenv.hostPlatform then llvm else targetLlvm)
    python3
  ];

  cmakeFlags = lib.optionals (lib.versions.major release_version == "13") [