3
0
Fork 0
forked from mirrors/nixpkgs

cc-wrapper-test: do not test sanitizers on darwin

This commit is contained in:
Nick Cao 2022-12-02 14:05:09 +08:00 committed by Rick van Schijndel
parent 57ff6191af
commit 8643dbc57e

View file

@ -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)
);