clang_6: fix sanitizers under libstdc++
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user