about summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/4
diff options
context:
space:
mode:
authorAndreas Herrmann <andreash87@gmx.ch>2017-06-06 21:37:23 +0200
committerAndreas Herrmann <andreash87@gmx.ch>2017-06-06 21:39:18 +0200
commit1cfed62073a7c4bd7ea70498041ae3f271977ff3 (patch)
tree0ffaa62687fd3b434ce8b9b969d00a34e4092277 /pkgs/development/compilers/llvm/4
parentec9a23332f06eca2996b15dfd83abfd54a27437a (diff)
downloadnixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar.gz
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar.bz2
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar.lz
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar.xz
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.tar.zst
nixlib-1cfed62073a7c4bd7ea70498041ae3f271977ff3.zip
llvm_4: Fix debugVersion
Previously failed on installation phase
when `substituteInPlace` could not find the cmake exports file.
Diffstat (limited to 'pkgs/development/compilers/llvm/4')
-rw-r--r--pkgs/development/compilers/llvm/4/llvm.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/llvm/4/llvm.nix b/pkgs/development/compilers/llvm/4/llvm.nix
index 1a78d672bfef..c859c7b958d8 100644
--- a/pkgs/development/compilers/llvm/4/llvm.nix
+++ b/pkgs/development/compilers/llvm/4/llvm.nix
@@ -115,11 +115,11 @@ in stdenv.mkDerivation rec {
   + stdenv.lib.optionalString (enableSharedLibraries) ''
     moveToOutput "lib/libLLVM-*" "$lib"
     moveToOutput "lib/libLLVM.${shlib}" "$lib"
-    substituteInPlace "$out/lib/cmake/llvm/LLVMExports-release.cmake" \
+    substituteInPlace "$out/lib/cmake/llvm/LLVMExports-${if debugVersion then "debug" else "release"}.cmake" \
       --replace "\''${_IMPORT_PREFIX}/lib/libLLVM-" "$lib/lib/libLLVM-"
   ''
   + stdenv.lib.optionalString (stdenv.isDarwin && enableSharedLibraries) ''
-    substituteInPlace "$out/lib/cmake/llvm/LLVMExports-release.cmake" \
+    substituteInPlace "$out/lib/cmake/llvm/LLVMExports-${if debugVersion then "debug" else "release"}.cmake" \
       --replace "\''${_IMPORT_PREFIX}/lib/libLLVM.dylib" "$lib/lib/libLLVM.dylib"
     install_name_tool -id $lib/lib/libLLVM.dylib $lib/lib/libLLVM.dylib
     install_name_tool -change @rpath/libLLVM.dylib $lib/lib/libLLVM.dylib $out/bin/llvm-config