mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 16:10:06 +01:00
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:
parent
ad2216b4c8
commit
c6f87ade84
2 changed files with 8 additions and 4 deletions
10
meson.build
10
meson.build
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue