ispc: use newer version and LLVM 4.0 due to bug in clang++ 3.9 wrapper (see #29204)

This commit is contained in:
Aristid Breitkreuz 2017-09-10 15:43:46 +02:00
parent 6e1eedd64e
commit 3dea197273
2 changed files with 7 additions and 8 deletions

View File

@ -2,11 +2,9 @@
testedTargets ? ["sse2" "host"] # the default test target is sse4, but that is not supported by all Hydra agents 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 { stdenv.mkDerivation rec {
version = "1.9.1"; version = "20170807";
rev = "v${version}"; rev = "6e0fc2f148e95afad998a7c7f4d7908d29fd8e44";
inherit testedTargets; inherit testedTargets;
@ -16,7 +14,7 @@ stdenv.mkDerivation rec {
owner = "ispc"; owner = "ispc";
repo = "ispc"; repo = "ispc";
inherit rev; inherit rev;
sha256 = "1wwsyvn44hd5iyi5779l5378x096307slpyl29wrsmfp66796693"; sha256 = "17fwnfm8a329lgfhjwcvji4h1fm4iqmc28wz23hvgqbpj8lk6qgh";
}; };
# there are missing dependencies in the Makefile, causing sporadic build failures # there are missing dependencies in the Makefile, causing sporadic build failures
@ -60,8 +58,8 @@ stdenv.mkDerivation rec {
''; '';
makeFlags = [ makeFlags = [
"CXX=${llvmPackages.clang}/bin/clang++" "CXX=${stdenv.cc}/bin/clang++"
"CLANG=${llvmPackages.clang}/bin/clang" "CLANG=${stdenv.cc}/bin/clang"
"CLANG_INCLUDE=${llvmPackages.clang-unwrapped}/include" "CLANG_INCLUDE=${llvmPackages.clang-unwrapped}/include"
]; ];

View File

@ -8523,7 +8523,8 @@ with pkgs;
isocodes = callPackage ../development/libraries/iso-codes { }; isocodes = callPackage ../development/libraries/iso-codes { };
ispc = callPackage ../development/compilers/ispc { ispc = callPackage ../development/compilers/ispc {
llvmPackages = llvmPackages_39; llvmPackages = llvmPackages_4;
stdenv = llvmPackages_4.stdenv;
}; };
itk = callPackage ../development/libraries/itk { }; itk = callPackage ../development/libraries/itk { };