Skip to content

Commit 6269c46

Browse files
committed
Merge branch 'jk/use-o0-in-leak-sanitizer'
Avoid false-positive from LSan whose assumption may be broken with higher optimization levels. * jk/use-o0-in-leak-sanitizer: Makefile: force -O0 when compiling with SANITIZE=leak
2 parents cc75743 + d3775de commit 6269c46

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

0 commit comments

Comments
 (0)