Use meson's c_std instead of -std=

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2018-12-19 23:37:45 +00:00
parent e58cbf8add
commit 9d115a1cc2
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,5 @@
project('compton', 'c', version: '4')
project('compton', 'c', version: '4',
default_options: ['c_std=c11'])
cc = meson.get_compiler('c')
@ -14,11 +15,10 @@ if git.found()
endif
endif
add_global_arguments('-std=c11', language: 'c')
add_global_arguments('-DCOMPTON_VERSION="'+version+'"', language: 'c')
if get_option('buildtype') == 'release'
add_global_arguments('-DNDEBUG', language: 'c')
add_global_arguments('-DNDEBUG', language: 'c')
endif
if get_option('sanitize')