diff options
author | David Robillard <d@drobilla.net> | 2025-06-26 07:05:10 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-06-26 07:05:10 -0400 |
commit | 2a9aa31da38fcffd40d350157486176cd30588a4 (patch) | |
tree | caf621c46a729648370341a43d40443545494eaf /test | |
parent | 85d07a4de1255ec6957c31cceb44559609b47da5 (diff) | |
download | zix-main.tar.gz zix-main.tar.bz2 zix-main.zip |
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/test/meson.build b/test/meson.build index 1e30f41..0db182c 100644 --- a/test/meson.build +++ b/test/meson.build @@ -147,15 +147,11 @@ if cc.get_id() != 'emscripten' ] if not meson.is_cross_build() - header_suppressions += [ - '-Wno-poison-system-directories', - ] + header_suppressions += ['-Wno-poison-system-directories'] endif if host_machine.system() == 'windows' - header_suppressions += [ - '-Wno-nonportable-system-include-path', - ] + header_suppressions += ['-Wno-nonportable-system-include-path'] endif elif cc.get_id() == 'gcc' @@ -199,21 +195,16 @@ if add_languages(['cpp'], native: false, required: get_option('tests_cpp')) '-Wno-c++98-compat-pedantic', '-Wno-nullability-extension', '-Wno-padded', - '-Wno-unknown-warning-option', '-Wno-unsafe-buffer-usage-in-libc-call', '-Wno-zero-as-null-pointer-constant', ] if not meson.is_cross_build() - cpp_test_args += [ - '-Wno-poison-system-directories', - ] + cpp_test_args += ['-Wno-poison-system-directories'] endif if host_machine.system() == 'windows' - cpp_test_args += [ - '-Wno-nonportable-system-include-path', - ] + cpp_test_args += ['-Wno-nonportable-system-include-path'] endif elif cpp.get_id() == 'gcc' @@ -241,6 +232,8 @@ if add_languages(['cpp'], native: false, required: get_option('tests_cpp')) ] endif + cpp_test_args = cpp.get_supported_arguments(cpp_test_args) + test( 'headers_cpp', executable( |