Use meson's c_std instead of -std=
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
e58cbf8add
commit
9d115a1cc2
|
@ -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,7 +15,6 @@ 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'
|
||||
|
|
Loading…
Reference in New Issue