mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
56b5db30d0
commit
ddbc8a6d3e
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -993,6 +993,7 @@ endif
|
|||
|
||||
ifdef SANITIZE
|
||||
BASIC_CFLAGS += -fsanitize=$(SANITIZE) -fno-sanitize-recover=$(SANITIZE)
|
||||
BASIC_CFLAGS += -fno-omit-frame-pointer
|
||||
endif
|
||||
|
||||
ifndef sysconfdir
|
||||
|
|
Loading…
Reference in a new issue