]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
Turn VALGRIND variable into a meson configuration switch
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 May 2018 20:28:24 +0000 (22:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 May 2018 16:54:36 +0000 (09:54 -0700)
commitd18cb3937bdc2efede153abce1cd8ddae941d762
treefc85b7d3dcfea9ea6261b79d56bda058b1f76d5e
parent51b66c7a8a8afc8241373e864514d5ac7b87f169
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'.
README
meson.build
meson_options.txt
src/basic/hashmap.c
src/basic/mempool.c
src/basic/mempool.h
src/journal/lookup3.c
src/libsystemd-network/test-dhcp-client.c