From 463663d4b4b7830a3721882f146949ed5d36eeab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 3 Aug 2018 10:35:07 +0100 Subject: [PATCH] meson: add option to enable poisoning of deallocated objects --- meson.build | 1 + meson_options.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 42920c0..a042337 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/meson_options.txt b/meson_options.txt index 0d51e7a..88ef10b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') -- 2.7.4