From 9d115a1cc2906b03eabd9dec62e9d64b3630d683 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 19 Dec 2018 23:37:45 +0000 Subject: [PATCH] Use meson's c_std instead of -std= Signed-off-by: Yuxuan Shui --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 3cf8b29..6565a24 100644 --- a/meson.build +++ b/meson.build @@ -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')