From f427603aa26e6db9dfeaff06eb6a4bb9967f25cc Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 14 Mar 2017 12:33:17 +0530 Subject: tests/37 has header: Disable fallback test on macOS --- test cases/common/37 has header/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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')] -- cgit v1.1