summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-13 22:28:24 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit018c562eab6d0d431c1675af6740baaa915611c3 (patch)
tree6b8bd68ad5dca1bf5e4552a72f15943f45178a7d /meson_options.txt
parent89206c9053e756697b0f1fce2ed692dc395c9fd5 (diff)
Turn VALGRIND variable into a meson configuration switch
Configuration through environment variable is inconvenient with meson, because they cannot be convieniently changed and/or are not preserved during reconfiguration (https://github.com/mesonbuild/meson/issues/1503). This adds -Dvalgrind=true/false, which has the advantage that it can be set at any time with meson configure -Dvalgrind=... and ninja will rebuild targets as necessary. Additional minor advantages are better consistency with the options for hashmap debugging, and typo avoidance with '#if' instead of '#ifdef'.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index fe8a5c972..f39bed270 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -74,6 +74,8 @@ option('kexec-path', type : 'string', description : 'path to kexec')
# description : 'enable extra debugging')
# option('memory-accounting-default', type : 'boolean',
# description : 'enable MemoryAccounting= by default')
+# option('valgrind', type : 'boolean', value : false,
+# description : 'do extra operations to avoid valgrind warnings')
#else
option('debug', type : 'string',
description : 'enable extra debugging (elogind,hashmap,mmap-cache)')