Skip to content

Commit 48f7e60

Browse files
committed
meson: disable dollar-in-identifier-extension warnings
Let's add the -Wno-dollar-in-identifier-extension flag to cpp compilers that support that option as we make use of dollars in identifiers extensively.
1 parent 3967cb4 commit 48f7e60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

meson.build

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ project(
1010
add_languages('rust', native: true)
1111
add_languages('rust', 'cpp', native: false)
1212

13+
cpp_compiler = meson.get_compiler('cpp')
14+
add_project_arguments(
15+
cpp_compiler.get_supported_arguments('-Wno-dollar-in-identifier-extension'),
16+
language: 'cpp'
17+
)
18+
1319
subdir('tools/meson')
1420
subdir('third-party')
1521

0 commit comments

Comments
 (0)