clang_6: fix sanitizers under libstdc++

This commit is contained in:
Benjamin Saunders
2018-05-24 15:04:30 -07:00
parent 11d26c797f
commit b0d0b1adfe
3 changed files with 11 additions and 8 deletions
-2
View File
@@ -38,11 +38,9 @@ stdenv.mkDerivation {
NIX_LDFLAGS="-L$NIX_BUILD_TOP/foo/lib -rpath $NIX_BUILD_TOP/foo/lib" $CC -lfoo -o ldflags-check ${./ldflags-main.c}
./ldflags-check
'' + stdenv.lib.optionalString (stdenv.cc.isCompilerRT or false) ''
$CC -o sanitizers -fsanitize=address,undefined ${./sanitizers.c}
./sanitizers
'' + ''
touch $out
'';