Skip to content

Commit

Permalink
ispc: use newer version and LLVM 4.0 due to bug in clang++ 3.9 wrappe…
Browse files Browse the repository at this point in the history
…r (see #29204)
  • Loading branch information
aristidb committed Sep 10, 2017
1 parent 6e1eedd commit 3dea197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 5 additions & 7 deletions pkgs/development/compilers/ispc/default.nix
Expand Up @@ -2,11 +2,9 @@
testedTargets ? ["sse2" "host"] # the default test target is sse4, but that is not supported by all Hydra agents
}:

# TODO: patch LLVM so Skylake-EX works better (patch included in ispc github) - needed for LLVM 3.9?

stdenv.mkDerivation rec {
version = "1.9.1";
rev = "v${version}";
version = "20170807";
rev = "6e0fc2f148e95afad998a7c7f4d7908d29fd8e44";

inherit testedTargets;

Expand All @@ -16,7 +14,7 @@ stdenv.mkDerivation rec {
owner = "ispc";
repo = "ispc";
inherit rev;
sha256 = "1wwsyvn44hd5iyi5779l5378x096307slpyl29wrsmfp66796693";
sha256 = "17fwnfm8a329lgfhjwcvji4h1fm4iqmc28wz23hvgqbpj8lk6qgh";
};

# there are missing dependencies in the Makefile, causing sporadic build failures
Expand Down Expand Up @@ -60,8 +58,8 @@ stdenv.mkDerivation rec {
'';

makeFlags = [
"CXX=${llvmPackages.clang}/bin/clang++"
"CLANG=${llvmPackages.clang}/bin/clang"
"CXX=${stdenv.cc}/bin/clang++"
"CLANG=${stdenv.cc}/bin/clang"
"CLANG_INCLUDE=${llvmPackages.clang-unwrapped}/include"
];

Expand Down
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -8523,7 +8523,8 @@ with pkgs;
isocodes = callPackage ../development/libraries/iso-codes { };

ispc = callPackage ../development/compilers/ispc {
llvmPackages = llvmPackages_39;
llvmPackages = llvmPackages_4;
stdenv = llvmPackages_4.stdenv;
};

itk = callPackage ../development/libraries/itk { };
Expand Down

0 comments on commit 3dea197

Please sign in to comment.