meson: turn on NO_MMAP when building with LSan

The previous commit taught the Makefile to turn on NO_MMAP in this instance. We should do the same with meson for consistency. We already do this for ASan builds, so we can just tweak one conditional. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 6, 2026 at 11:25 UTC a8a69bbb64e1d25b327aed5925b1fbc086a0ba69
1 file changed +1 -1
meson.build
+1 -1
@@ -1417,7 +1417,7 @@ else
1417 'getpagesize' : [],
1418 }
1419
1420 - if get_option('b_sanitize').contains('address')
1420 + if get_option('b_sanitize').contains('address') or get_option('b_sanitize').contains('leak')
1421 libgit_c_args += '-DNO_MMAP'
1422 libgit_sources += 'compat/mmap.c'
1423 else