]> git.ipfire.org Git - thirdparty/git.git/commitdiff
meson: turn on NO_MMAP when building with LSan
authorJeff King <peff@peff.net>
Fri, 6 Mar 2026 16:25:13 +0000 (11:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Mar 2026 05:12:10 +0000 (21:12 -0800)
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>
meson.build

index dd52efd1c875746304c717d8fc4a572d1f26a0cc..fc5d0f5954dab22eba67b44e26fb17de211c9b64 100644 (file)
@@ -1417,7 +1417,7 @@ else
     'getpagesize' : [],
   }
 
-  if get_option('b_sanitize').contains('address')
+  if get_option('b_sanitize').contains('address') or get_option('b_sanitize').contains('leak')
     libgit_c_args += '-DNO_MMAP'
     libgit_sources += 'compat/mmap.c'
   else