Commit 463663d4 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: add option to enable poisoning of deallocated objects

parent c31ef7fa
......@@ -374,6 +374,7 @@ test_deps = [gmp_dep, gsl_dep, gslcblas_dep]
dl_dep = cc.find_library('dl', required : false)
cdata.set('HAVE_DLADDR', cc.has_function('dladdr', dependencies : dl_dep))
cdata.set10('GST_ENABLE_EXTRA_CHECKS', get_option('extra-checks'))
cdata.set('USE_POISONING', get_option('poisoning'))
configinc = include_directories('.')
libsinc = include_directories('libs')
......
......@@ -10,6 +10,7 @@ option('ptp-helper-setuid-group', type : 'string',
option('ptp-helper-permissions', type : 'combo',
choices : ['none', 'setuid-root', 'capabilities', 'auto'], value : 'auto')
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
option('libunwind', type : 'feature', value : 'auto', description : 'Use libunwind to generate backtraces')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment