From f1ad21d2bf97b6ecb2359afccf389c65c2eb7d13 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2020 16:35:44 +0100 Subject: [PATCH] test/meson.build: add -Wno-unused-command-line-argument for clang 9+ --- test/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/meson.build b/test/meson.build index 75914a3ff..5818da55d 100644 --- a/test/meson.build +++ b/test/meson.build @@ -9,6 +9,14 @@ if compiler.get_id() == 'gcc' ] endif +if compiler.get_id() == 'clang' and compiler.version().version_compare('>=9') + gtest_compile_args += [ + # work around clang warning caused by GTest's wrong "-lpthread" + # compiler flag + '-Wno-unused-command-line-argument', + ] +endif + gtest_dep = declare_dependency( dependencies: [dependency('gtest', main: true)], compile_args: gtest_compile_args,