zig: apply suggestion from @cole-h

This commit is contained in:
Christine Dodrill 2020-04-13 18:55:57 -04:00
parent f94bd95368
commit 24b3158efc

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }: { stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib, substituteAll }:
llvmPackages.stdenv.mkDerivation rec { llvmPackages.stdenv.mkDerivation rec {
version = "0.6.0"; version = "0.6.0";
@ -20,12 +20,12 @@ llvmPackages.stdenv.mkDerivation rec {
zlib zlib
]; ];
patches = [ ./llvm10_polly.patch ]; patches = [
(substituteAll {
postPatch = '' src = ./llvm10_polly.patch;
export llvm_extras=-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so llvm_extras = "-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so";
substituteAllInPlace CMakeLists.txt })
''; ];
preBuild = '' preBuild = ''
export HOME=$TMPDIR; export HOME=$TMPDIR;