Skip to content

Commit ddbc8a6

Browse files
peffgitster
authored andcommitted
Makefile: turn off -fomit-frame-pointer with sanitizers
The ASan manual recommends disabling this optimization, as it can make the backtraces produced by the tool harder to follow (and since this is a test-debug build, we don't care about squeezing out every last drop of performance). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 56b5db3 commit ddbc8a6

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
@@ -993,6 +993,7 @@ endif
993993

994994
ifdef SANITIZE
995995
BASIC_CFLAGS += -fsanitize=$(SANITIZE) -fno-sanitize-recover=$(SANITIZE)
996+
BASIC_CFLAGS += -fno-omit-frame-pointer
996997
endif
997998

998999
ifndef sysconfdir

0 commit comments

Comments
 (0)