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')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
|
@ -14,11 +15,10 @@ 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'
|
||||||
add_global_arguments('-DNDEBUG', language: 'c')
|
add_global_arguments('-DNDEBUG', language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('sanitize')
|
if get_option('sanitize')
|
||||||
|
|
Loading…
Reference in New Issue