meson: add option to enable poisoning of deallocated objects

This commit is contained in:
Tim-Philipp Müller 2018-08-03 10:35:07 +01:00
parent c31ef7fa51
commit 463663d4b4
2 changed files with 2 additions and 0 deletions

View file

@ -374,6 +374,7 @@ test_deps = [gmp_dep, gsl_dep, gslcblas_dep]
dl_dep = cc.find_library('dl', required : false) dl_dep = cc.find_library('dl', required : false)
cdata.set('HAVE_DLADDR', cc.has_function('dladdr', dependencies : dl_dep)) cdata.set('HAVE_DLADDR', cc.has_function('dladdr', dependencies : dl_dep))
cdata.set10('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks')) cdata.set10('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks'))
cdata.set('USE_POISONING', get_option('poisoning'))
configinc = include_directories('.') configinc = include_directories('.')
libsinc = include_directories('libs') libsinc = include_directories('libs')

View file

@ -10,6 +10,7 @@ option('ptp-helper-setuid-group', type : 'string',
option('ptp-helper-permissions', type : 'combo', option('ptp-helper-permissions', type : 'combo',
choices : ['none', 'setuid-root', 'capabilities', 'auto'], value : 'auto') choices : ['none', 'setuid-root', 'capabilities', 'auto'], value : 'auto')
option('extra-checks', type : 'boolean', value : true, description : 'Enable extra runtime checks') option('extra-checks', type : 'boolean', value : true, description : 'Enable extra runtime checks')
option('poisoning', type : 'boolean', value : false, description : 'Enable poisoning of deallocated objects')
# Feature options # Feature options
option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces') option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces')