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') cc = meson.get_compiler('c')
@ -14,7 +15,6 @@ if git.found()
endif endif
endif endif
add_global_arguments('-std=c11', language: 'c')
add_global_arguments('-DCOMPTON_VERSION="'+version+'"', language: 'c') add_global_arguments('-DCOMPTON_VERSION="'+version+'"', language: 'c')
if get_option('buildtype') == 'release' if get_option('buildtype') == 'release'