Skip to content

Commit 86fa968

Browse files
peffgitster
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]>
1 parent 7d8dc5a commit 86fa968

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
@@ -1338,6 +1338,7 @@ BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
13381338
endif
13391339
ifneq ($(filter leak,$(SANITIZERS)),)
13401340
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
1341+
BASIC_CFLAGS += -O0
13411342
SANITIZE_LEAK = YesCompiledWithIt
13421343
endif
13431344
ifneq ($(filter address,$(SANITIZERS)),)

0 commit comments

Comments
 (0)