cc-wrapper-test: do not test sanitizers when cross compiling
This commit is contained in:
parent
8643dbc57e
commit
42cd6aebe4
1 changed files with 1 additions and 1 deletions
|
@ -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.isDarwin && !stdenv.hostPlatform.isMusl && (
|
||||
sanitizersWorking = (stdenv.buildPlatform == stdenv.hostPlatform) && !stdenv.isDarwin && !stdenv.hostPlatform.isMusl && (
|
||||
(stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion stdenv.cc.name) "5.0.0")
|
||||
|| (stdenv.cc.isGNU && stdenv.isLinux)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue