From f3e490752776859d1060b91bfa1cb07b41108dcb Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Fri, 3 Jan 2020 09:31:55 -0800 Subject: [PATCH] meson: fix build error with 0.47.2 Otherwise, this error is encountered: meson.build:89:0: ERROR: Tried to access unknown option "debug". Reviewed-by: Gert Wollny --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 4333a0d..5fb690c 100644 --- a/meson.build +++ b/meson.build @@ -100,9 +100,7 @@ if cc.has_header('sys/select.h') conf_data.set('HAVE_SYS_SELECT_H', 1) endif -debug_enabled = get_option('debug') - -if debug_enabled +if get_option('buildtype') == 'debug' add_global_arguments('-DDEBUG=1', language : 'c') endif @@ -197,7 +195,6 @@ lines += 'glx: ' + (have_glx ? 'yes' : 'no') lines += '' lines += 'gbm_alloc: ' + (with_gbm_allocation ? 'yes' : 'no' ) lines += '' -lines += 'debug: ' + (debug_enabled ? 'yes' : 'no' ) lines += 'tests: ' + (with_tests ? 'yes' : 'no' ) lines += 'fuzzer: ' + (with_fuzzer ? 'yes' : 'no' )