aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-03-14 12:33:17 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-03-14 12:33:17 +0530
commitf427603aa26e6db9dfeaff06eb6a4bb9967f25cc (patch)
tree9cdb586f7a16bee0e2a9f3e88b3e4a0fb38cbb6e
parent665dd78ffed601f09db4cff784dce6e06ce1b797 (diff)
downloadmeson-f427603aa26e6db9dfeaff06eb6a4bb9967f25cc.zip
meson-f427603aa26e6db9dfeaff06eb6a4bb9967f25cc.tar.gz
meson-f427603aa26e6db9dfeaff06eb6a4bb9967f25cc.tar.bz2
tests/37 has header: Disable fallback test on macOS
-rw-r--r--test cases/common/37 has header/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/test cases/common/37 has header/meson.build b/test cases/common/37 has header/meson.build
index c87f244..4299ce5 100644
--- a/test cases/common/37 has header/meson.build
+++ b/test cases/common/37 has header/meson.build
@@ -10,7 +10,12 @@ configure_file(input : non_existant_header,
configuration : configuration_data())
# Test that the fallback to __has_include also works on all compilers
-args = [[], ['-U__has_include']]
+if host_system != 'darwin'
+ args = [[], ['-U__has_include']]
+else
+ # On Darwin's clang you can't redefine builtin macros so the above doesn't work
+ args = [[]]
+endif
foreach arg : args
foreach comp : [meson.get_compiler('c'), meson.get_compiler('cpp')]