Makefile: force -O0 when compiling with SANITIZE=leak
Cherry pick commit d3775de0
(Makefile: force -O0 when compiling with
SANITIZE=leak, 2022-10-18), as otherwise the leak checker at GitHub
Actions CI seems to fail with a false positive.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
b7a92d078b
commit
8453685d04
1
Makefile
1
Makefile
@ -1268,6 +1268,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
|
|||||||
endif
|
endif
|
||||||
ifneq ($(filter leak,$(SANITIZERS)),)
|
ifneq ($(filter leak,$(SANITIZERS)),)
|
||||||
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
|
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
|
||||||
|
BASIC_CFLAGS += -O0
|
||||||
SANITIZE_LEAK = YesCompiledWithIt
|
SANITIZE_LEAK = YesCompiledWithIt
|
||||||
endif
|
endif
|
||||||
ifneq ($(filter address,$(SANITIZERS)),)
|
ifneq ($(filter address,$(SANITIZERS)),)
|
||||||
|
Loading…
Reference in New Issue
Block a user