aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-03-06 11:25:13 -0500
committerJunio C Hamano <gitster@pobox.com>2026-03-06 21:12:10 -0800
commita8a69bbb64e1d25b327aed5925b1fbc086a0ba69 (patch)
treed05983a78c1d858e6fcc6eafcfb043c0a1e9eaa9
parent00611d86c66f4230eb229b2b7dc5ac413aef2221 (diff)
downloadgit-a8a69bbb64e1d25b327aed5925b1fbc086a0ba69.tar.xz
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>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index dd52efd1c8..fc5d0f5954 100644
--- a/meson.build
+++ b/meson.build
@@ -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