We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b10244 commit f18bc29Copy full SHA for f18bc29
meson.build
@@ -11,22 +11,18 @@ project(
11
],
12
)
13
14
-add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
+cc = meson.get_compiler('c')
15
16
-add_project_arguments(
17
- [
18
- '-Wno-unused-parameter',
19
- '-Wno-unused-result',
20
- '-Wundef',
21
- '-Wvla',
22
- ],
23
- language: 'c',
24
-)
+add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
25
26
-cc = meson.get_compiler('c')
+add_project_arguments(cc.get_supported_arguments([
+ '-Wno-unused-parameter',
+ '-Wno-unused-result',
+ '-Wundef',
+ '-Wvla',
+]), language: 'c')
27
28
is_freebsd = host_machine.system().startswith('freebsd')
29
-
30
if is_freebsd
31
add_project_arguments('-D_C11_SOURCE', language: 'c')
32
endif
0 commit comments