diff options
author | David Robillard <d@drobilla.net> | 2021-12-17 17:09:29 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-12-17 17:46:29 -0500 |
commit | 7290c84ea46bf2edb63054469704c30fa5ea5cd8 (patch) | |
tree | 6e1c2e820015fc39dc800a095ec4c21ccc9fe1c7 | |
parent | 20bc5fe0759bbf313a242cb51ef8bf33736e506b (diff) | |
download | zix-7290c84ea46bf2edb63054469704c30fa5ea5cd8.tar.gz zix-7290c84ea46bf2edb63054469704c30fa5ea5cd8.tar.bz2 zix-7290c84ea46bf2edb63054469704c30fa5ea5cd8.zip |
Suppress new warnings in clang 13
-rw-r--r-- | meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build index a5fea1b..39ccf29 100644 --- a/meson.build +++ b/meson.build @@ -302,12 +302,22 @@ if not get_option('benchmarks').disabled() build_benchmarks = glib_dep.found() + benchmark_c_args = [] + if cc.get_id() == 'clang' + benchmark_c_args += [ + '-Wno-reserved-identifier', + ] + endif + + benchmark_c_args = cc.get_supported_arguments(benchmark_c_args) + if build_benchmarks foreach benchmark : benchmarks benchmark(benchmark, executable(benchmark, 'benchmark/@0@.c'.format(benchmark), include_directories: include_directories(['include']), + c_args: benchmark_c_args, dependencies: [zix_dep, glib_dep])) endforeach else |