Skip to content

Commit b6afb3f

Browse files
peffdscho
authored andcommitted
Makefile: force -O0 when compiling with SANITIZE=leak
Cherry pick commit d3775de (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. [Backported to v2.37.0 for easier merging e.g. into Git for Windows] 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>
1 parent e4a4b31 commit b6afb3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
13231323
endif
13241324
ifneq ($(filter leak,$(SANITIZERS)),)
13251325
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
1326+
BASIC_CFLAGS += -O0
13261327
SANITIZE_LEAK = YesCompiledWithIt
13271328
endif
13281329
ifneq ($(filter address,$(SANITIZERS)),)

0 commit comments

Comments
 (0)