llvm 6: Fix libcxxabi impurity and darwin sanitizers

This commit is contained in:
John Ericson
2018-06-14 19:19:54 -04:00
parent 1eacf21bd4
commit fc9644d4c9
3 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ with stdenv.lib;
let
# Sanitizers are not supported on Darwin.
# Sanitizer headers aren't available in older libc++ stdenvs due to a bug
sanitizersBroken = stdenv.isDarwin || stdenv.cc.isClang && builtins.compareVersions (getVersion stdenv.cc.name) "6.0.0" < 0;
sanitizersBroken = stdenv.cc.isClang && versionOlder (getVersion stdenv.cc.name) "6.0.0";
in stdenv.mkDerivation {
name = "cc-wrapper-test";