diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-13 22:28:24 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 018c562eab6d0d431c1675af6740baaa915611c3 (patch) | |
tree | 6b8bd68ad5dca1bf5e4552a72f15943f45178a7d /src/basic/mempool.c | |
parent | 89206c9053e756697b0f1fce2ed692dc395c9fd5 (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 'src/basic/mempool.c')
-rw-r--r-- | src/basic/mempool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/mempool.c b/src/basic/mempool.c index 4be4a3d38..2e55639e8 100644 --- a/src/basic/mempool.c +++ b/src/basic/mempool.c @@ -76,7 +76,7 @@ void mempool_free_tile(struct mempool *mp, void *p) { mp->freelist = p; } -#ifdef VALGRIND +#if VALGRIND void mempool_drop(struct mempool *mp) { struct pool *p = mp->first_pool; |