chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit018c562eab6d0d431c1675af6740baaa915611c3
tree6b8bd68ad5dca1bf5e4552a72f15943f45178a7d
parent89206c9053e756697b0f1fce2ed692dc395c9fd5
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'.
meson.build
meson_options.txt
src/basic/hashmap.c
src/basic/mempool.c
src/basic/mempool.h