Debian Codegraph @

test/headers/meson.build

raw
1 # Copyright 2020-2026 David Robillard <[email protected]>
2 # SPDX-License-Identifier: 0BSD OR ISC
3
4 header_c_suppressions = []
5
6 if cc.get_id() == 'clang'
7 if get_option('warning_level') == 'everything'
8 if not meson.is_cross_build()
9 header_c_suppressions += ['-Wno-poison-system-directories']
10 endif
11 endif
12
13 if warning_level in ['everything', '3']
14 header_c_suppressions += ['-Wno-nullability-extension']
15 endif
16
17 elif cc.get_id() == 'msvc'
18 header_c_suppressions += [
19 '/wd4820', # padding added after construct
20 ]
21 endif
22
23 header_c_suppressions = cc.get_supported_arguments(header_c_suppressions)
24
25 test(
26 'headers',
27 executable(
28 'test_headers',
29 files('test_headers.c'),
30 c_args: header_c_suppressions,
31 dependencies: [sratom_dep],
32 implicit_include_directories: false,
33 ),
34 suite: 'unit',
35 )