diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-17 09:50:21 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-17 09:50:21 -0500 |
commit | 7b73c7f49a0a4673987b661b9d679ec595704d89 (patch) | |
tree | 0c4ffd83ac4dde4996d8236e4b0665ab8362c8ff /pkgs/development/compilers/llvm/6 | |
parent | 9487244703af5102ad4097de11b962a2df9f0ee9 (diff) |
clang: only link if LLVMgold exists
buildEnv now errors with broken symlinks. Lots of things like this still exist. Discussion in #39038.
Diffstat (limited to 'pkgs/development/compilers/llvm/6')
-rw-r--r-- | pkgs/development/compilers/llvm/6/clang/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/6/clang/default.nix b/pkgs/development/compilers/llvm/6/clang/default.nix index 919efdc8ef971..c540a8267e979 100644 --- a/pkgs/development/compilers/llvm/6/clang/default.nix +++ b/pkgs/development/compilers/llvm/6/clang/default.nix @@ -53,7 +53,10 @@ let # Clang expects to find LLVMgold in its own prefix # Clang expects to find sanitizer libraries in its own prefix postInstall = '' - ln -sv ${llvm}/lib/LLVMgold.so $out/lib + if [ -e ${llvm}/lib/LLVMgold.so ]; then + ln -sv ${llvm}/lib/LLVMgold.so $out/lib + fi + ln -sv ${llvm}/lib/clang/${release_version}/lib $out/lib/clang/${release_version}/ ln -sv $out/bin/clang $out/bin/cpp |