]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Malloc trace
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 8 Aug 2023 11:34:07 +0000 (13:34 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:33 +0000 (13:28 +0100)
meson.build
meson/malloc-trace/meson.build [new file with mode: 0644]
meson_options.txt

index 3a8209c75853ae19f67703564c08085664bb5e04..e5f51033036e16e0a12e2b99c949d407d03edf8d 100644 (file)
@@ -71,6 +71,7 @@ subdir('meson/systemd')                  # Systemd and unit file handling
 subdir('meson/auto-var-init')            # Automatic Variable Initialization
 # TODO Use meson's -Db_sanitize option?
 # subdir('meson/sanitizers')               # Sanitizers
+subdir('meson/malloc-trace')             # Malloc-trace
 
 # Find or generate pdns/dnslabeltext.cc
 if not ragel.found() and not fs.exists('pdns/dnslabeltext.cc')
diff --git a/meson/malloc-trace/meson.build b/meson/malloc-trace/meson.build
new file mode 100644 (file)
index 0000000..1f48637
--- /dev/null
@@ -0,0 +1,4 @@
+# Malloc-trace
+
+opt_malloc_trace = get_option('malloc-trace')
+conf.set10('MALLOC_TRACE', opt_malloc_trace, description: 'Enable malloc-trace')
index 75c71e43b086c098933fa13c8117e50330cfbce4..e1cd4b10f8f5d12188c678b114379172f3b0c156 100644 (file)
@@ -55,3 +55,4 @@ option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pat
 # option('sanitizer-thread', type: 'boolean', value: false, description: 'Enable the Thread Sanitizer')
 # option('sanitizer-leak', type: 'boolean', value: false, description: 'Enable the Leak Sanitizer')
 # option('sanitizer-undefined', type: 'boolean', value: false, description: 'Enable the Undefined Behavior Sanitizer')
+option('malloc-trace', type: 'boolean', value: false, description: 'Enable malloc-trace')