From 07ebb8bb792be16de33596e2cea120eb72b2ec77 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Wed, 6 Jun 2018 07:59:59 +0000 Subject: [PATCH] tests.cc-wrapper: do not test sanitizers on darwin They are not supported yet. https://github.com/NixOS/nixpkgs/pull/41284#issuecomment-394977350 --- pkgs/test/cc-wrapper/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix index 00b964940c81..7061adb8e88a 100644 --- a/pkgs/test/cc-wrapper/default.nix +++ b/pkgs/test/cc-wrapper/default.nix @@ -1,8 +1,9 @@ { stdenv }: 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.cc.isClang && builtins.compareVersions (getVersion stdenv.cc.name) "6.0.0" < 0; + sanitizersBroken = stdenv.isDarwin || stdenv.cc.isClang && builtins.compareVersions (getVersion stdenv.cc.name) "6.0.0" < 0; in stdenv.mkDerivation { name = "cc-wrapper-test";