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 <gert.wollny@collabora.com>
macos/master
Gurchetan Singh 5 years ago
parent 9e6b3e36dd
commit f3e4907527
  1. 5
      meson.build

@ -100,9 +100,7 @@ if cc.has_header('sys/select.h')
conf_data.set('HAVE_SYS_SELECT_H', 1) conf_data.set('HAVE_SYS_SELECT_H', 1)
endif endif
debug_enabled = get_option('debug') if get_option('buildtype') == 'debug'
if debug_enabled
add_global_arguments('-DDEBUG=1', language : 'c') add_global_arguments('-DDEBUG=1', language : 'c')
endif endif
@ -197,7 +195,6 @@ lines += 'glx: ' + (have_glx ? 'yes' : 'no')
lines += '' lines += ''
lines += 'gbm_alloc: ' + (with_gbm_allocation ? 'yes' : 'no' ) lines += 'gbm_alloc: ' + (with_gbm_allocation ? 'yes' : 'no' )
lines += '' lines += ''
lines += 'debug: ' + (debug_enabled ? 'yes' : 'no' )
lines += 'tests: ' + (with_tests ? 'yes' : 'no' ) lines += 'tests: ' + (with_tests ? 'yes' : 'no' )
lines += 'fuzzer: ' + (with_fuzzer ? 'yes' : 'no' ) lines += 'fuzzer: ' + (with_fuzzer ? 'yes' : 'no' )

Loading…
Cancel
Save