Skip to content

Commit 8453685

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. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b7a92d0 commit 8453685

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
@@ -1268,6 +1268,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
12681268
endif
12691269
ifneq ($(filter leak,$(SANITIZERS)),)
12701270
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
1271+
BASIC_CFLAGS += -O0
12711272
SANITIZE_LEAK = YesCompiledWithIt
12721273
endif
12731274
ifneq ($(filter address,$(SANITIZERS)),)

0 commit comments

Comments
 (0)