meson.build: drop the separate cpp flags

All we care about for C++ is that we build.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-09-09 11:42:17 +10:00
parent ad2216b4c8
commit c6f87ade84
2 changed files with 8 additions and 4 deletions

View file

@ -42,10 +42,14 @@ libinput_so_version = '@0@.@1@.@2@'.format((libinput_lt_c - libinput_lt_a),
# Compiler setup # Compiler setup
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
cppflags = ['-Wno-unused-parameter', '-fvisibility=hidden'] cflags = [
cflags = cppflags + ['-Wmissing-prototypes', '-Wstrict-prototypes'] '-Wno-unused-parameter',
'-Wmissing-prototypes',
'-Wstrict-prototypes'
'-fvisibility=hidden',
]
add_project_arguments(cflags, language : 'c') add_project_arguments(cflags, language : 'c')
add_project_arguments(cppflags, language : 'cpp')
# config.h # config.h
config_h = configuration_data() config_h = configuration_data()

View file

@ -5,7 +5,7 @@
using namespace std; using namespace std;
int int
main(int argc, char **argv) main(void)
{ {
return 0; return 0;
} }