Skip to content

Commit

Permalink
tests.cc-wrapper: do not test sanitizers on darwin
Browse files Browse the repository at this point in the history
They are not supported yet.

#41284 (comment)
  • Loading branch information
orivej committed Jun 6, 2018
1 parent 0b97cb6 commit 07ebb8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/test/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit 07ebb8b

Please sign in to comment.