From bd0105f64fb4ed62aae26be82d325ec70066886b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 3 Nov 2022 09:53:41 -0400 Subject: Actually fix MacOS build --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index cc652e5..203605c 100644 --- a/meson.build +++ b/meson.build @@ -490,12 +490,20 @@ if not get_option('tests').disabled() '-Wno-padded', '-Wno-zero-as-null-pointer-constant', ] + + if not meson.is_cross_build() + cpp_test_args += [ + '-Wno-poison-system-directories', + ] + endif + elif cpp.get_id() == 'gcc' cpp_test_args = [ '-Wall', '-Wno-padded', '-Wno-unused-const-variable', ] + elif cpp.get_id() == 'msvc' cpp_test_args = [ '/Wall', -- cgit v1.2.1