about summary refs log tree commit diff
path: root/pkgs/test/cc-wrapper
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2022-12-02 14:05:09 +0800
committerRick van Schijndel <Mindavi@users.noreply.github.com>2022-12-25 09:19:28 +0100
commit8643dbc57e2d529eb4020b10d590ca3019e83d7c (patch)
tree64dcce1112e5467f642dff964ba996b635f27c15 /pkgs/test/cc-wrapper
parent57ff6191af7821cef3dddc12ca5a373ea015c7bf (diff)
cc-wrapper-test: do not test sanitizers on darwin
Diffstat (limited to 'pkgs/test/cc-wrapper')
-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 8a439f07b3a04..57fb49828e964 100644
--- a/pkgs/test/cc-wrapper/default.nix
+++ b/pkgs/test/cc-wrapper/default.nix
@@ -3,7 +3,7 @@
 let
   # Sanitizers are not supported on Darwin.
   # Sanitizer headers aren't available in older libc++ stdenvs due to a bug
-  sanitizersWorking = !stdenv.hostPlatform.isMusl && (
+  sanitizersWorking = !stdenv.isDarwin && !stdenv.hostPlatform.isMusl && (
     (stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion stdenv.cc.name) "5.0.0")
     || (stdenv.cc.isGNU && stdenv.isLinux)
   );