summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-06-14 10:22:33 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-06-14 19:19:54 -0400
commitfc9644d4c9c9d29958e9bcf1676d48d4b3026bb4 (patch)
treec5ae58a61ecae149ba8f8ecdbc5e2a26a2a270b4 /pkgs/test
parent1eacf21bd4cf88fe284bb1687e35a52389e6caac (diff)
downloadnixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar.gz
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar.bz2
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar.lz
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar.xz
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.tar.zst
nixpkgs-fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4.zip
llvm 6: Fix libcxxabi impurity and darwin sanitizers
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/cc-wrapper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix
index 7061adb8e88..dd41cd157ca 100644
--- a/pkgs/test/cc-wrapper/default.nix
+++ b/pkgs/test/cc-wrapper/default.nix
@@ -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";