Merge branch 'clang-fix-fsanitize' of git://github.com/redbaron/nixpkgs
Fix -fsanitize=... options for clang
This commit is contained in:
commit
35165063a7
@ -28,7 +28,11 @@ stdenv.mkDerivation {
|
||||
(stdenv.lib.optional (stdenv.gcc.gcc != null) "-DGCC_INSTALL_PREFIX=${stdenv.gcc.gcc}");
|
||||
|
||||
# Clang expects to find LLVMgold in its own prefix
|
||||
postInstall = "ln -sv ${llvm}/lib/LLVMgold.so $out/lib";
|
||||
# Clang expects to find sanitizer libraries in its own prefix
|
||||
postInstall = ''
|
||||
ln -sv ${llvm}/lib/LLVMgold.so $out/lib
|
||||
ln -sv ${llvm}/lib/clang/3.4/lib $out/lib/clang/3.4/
|
||||
'';
|
||||
|
||||
passthru.gcc = stdenv.gcc.gcc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user