diff options
author | Matthew Glazar <strager.nds@gmail.com> | 2018-04-15 21:08:24 -0700 |
---|---|---|
committer | Matthew Glazar <strager.nds@gmail.com> | 2018-04-15 21:12:03 -0700 |
commit | 2505aa51a449e5237808b2b6dc6a90105da90caa (patch) | |
tree | e500bca052e910c3dab736807827f1405d8de77e /pkgs/development/compilers/llvm | |
parent | d3d0c0196ebffe23eaab27086ef1a426990ef3cc (diff) | |
download | nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar.gz nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar.bz2 nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar.lz nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar.xz nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.tar.zst nixlib-2505aa51a449e5237808b2b6dc6a90105da90caa.zip |
clang: fix install on Darwin
As of Nix 2.0, building the `user-environment` package on macOS (Darwin) fails because LLVMgold.so is a broken symlink. Fix the issue by not creating the symlink in the first place, since it wouldn't be used on Darwin anyway.
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r-- | pkgs/development/compilers/llvm/5/clang/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/5/clang/default.nix b/pkgs/development/compilers/llvm/5/clang/default.nix index 8a25db3ef41a..36f09a42308a 100644 --- a/pkgs/development/compilers/llvm/5/clang/default.nix +++ b/pkgs/development/compilers/llvm/5/clang/default.nix @@ -52,7 +52,9 @@ let postInstall = '' # Clang expects to find LLVMgold in its own prefix - ln -sv ${llvm}/lib/LLVMgold.so $out/lib + if [ -e ${llvm}/lib/LLVMgold.so ]; then + ln -sv ${llvm}/lib/LLVMgold.so $out/lib + fi # Clang expects to find sanitizer libraries in its own prefix ln -sv ${llvm}/lib/clang/${release_version}/lib $out/lib/clang/${release_version}/ ln -sv $out/bin/clang $out/bin/cpp |