mirror of
https://github.com/git/git.git
synced 2026-03-11 01:28:42 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
00611d86c6
commit
a8a69bbb64
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user