Merge pull request #42977 from dtzWill/feature/ispc-llvm-6

ispc: llvm_4 -> llvm_6, fix luxcorerender
This commit is contained in:
Will Dietz 2018-07-05 09:22:32 -05:00 committed by GitHub
commit eecbb632fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, bash, which, m4, python, bison, flex, llvmPackages,
{stdenv, fetchFromGitHub, fetchpatch, bash, which, m4, python, bison, flex, llvmPackages,
testedTargets ? ["sse2" "host"] # the default test target is sse4, but that is not supported by all Hydra agents
}:
@ -32,6 +32,13 @@ stdenv.mkDerivation rec {
llvmPackages.clang-unwrapped # we need to link against libclang, so we need the unwrapped
];
patches = [
(fetchpatch {
url = https://github.com/ispc/ispc/commit/d504641f5af9d5992e7c8f0ed42c1063a39ede5b.patch;
sha256 = "192q3gyvam79469bmlwf0jpfi2y4f8hl2vgcvjngsqhvscwira0s";
})
];
postPatch = "sed -i -e 's/\\/bin\\///g' -e 's/-lcurses/-lncurses/g' Makefile";
# TODO: this correctly catches errors early, but also some things that are just weird and don't seem to be real

View File

@ -80,6 +80,8 @@ in stdenv.mkDerivation (rec {
"-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
"-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
"-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
"-DLLVM_ENABLE_DUMP=ON"
]
++ stdenv.lib.optional enableSharedLibraries
"-DLLVM_LINK_LLVM_DYLIB=ON"

View File

@ -10,6 +10,7 @@
let boost_static = boost165.override {
python = python35;
enableStatic = true;
enablePython = true;
};
in stdenv.mkDerivation rec {

View File

@ -9711,8 +9711,8 @@ with pkgs;
isocodes = callPackage ../development/libraries/iso-codes { };
ispc = callPackage ../development/compilers/ispc {
llvmPackages = llvmPackages_4;
stdenv = llvmPackages_4.stdenv;
llvmPackages = llvmPackages_6;
stdenv = llvmPackages_6.stdenv;
};
isso = callPackage ../servers/isso { };