diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-13 22:28:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-17 09:54:36 -0700 |
commit | d18cb3937bdc2efede153abce1cd8ddae941d762 (patch) | |
tree | fc85b7d3dcfea9ea6261b79d56bda058b1f76d5e /src/libsystemd-network | |
parent | 51b66c7a8a8afc8241373e864514d5ac7b87f169 (diff) | |
download | systemd-d18cb3937bdc2efede153abce1cd8ddae941d762.tar.gz |
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 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/test-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c index 98e8a7e25a..7aa121b85c 100644 --- a/src/libsystemd-network/test-dhcp-client.c +++ b/src/libsystemd-network/test-dhcp-client.c @@ -539,7 +539,7 @@ int main(int argc, char *argv[]) { test_discover_message(e); test_addr_acq(e); -#ifdef VALGRIND +#if VALGRIND /* Make sure the async_close thread has finished. * valgrind would report some of the phread_* structures * as not cleaned up properly. */ |