Skip to content
Snippets Groups Projects
Commit 6d5af5fe authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Enable extra warning flags for C++ too

parent 3fdb3c4c
No related branches found
No related tags found
1 merge request!82Enable and squash compiler warnings
......@@ -110,8 +110,11 @@ no_warning_cxxflags = no_warning_flags + [
]
c_compiler = meson.get_compiler('c')
cpp_compiler = meson.get_compiler('cpp')
supported_warning_cflags = c_compiler.get_supported_arguments(warning_cflags)
add_project_arguments(supported_warning_cflags, language : 'c')
supported_warning_cxxflags = cpp_compiler.get_supported_arguments(warning_cxxflags)
add_project_arguments(supported_warning_cxxflags, language : 'cpp')
add_project_link_arguments(
c_compiler.get_supported_link_arguments(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment