Skip to content

Commit a8a69bb

Browse files
peffgitster
authored andcommitted
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>
1 parent 00611d8 commit a8a69bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ else
14171417
'getpagesize' : [],
14181418
}
14191419

1420-
if get_option('b_sanitize').contains('address')
1420+
if get_option('b_sanitize').contains('address') or get_option('b_sanitize').contains('leak')
14211421
libgit_c_args += '-DNO_MMAP'
14221422
libgit_sources += 'compat/mmap.c'
14231423
else

0 commit comments

Comments
 (0)