]> git.neil.brown.name Git - git.git/commitdiff
Makefile: turn off -fomit-frame-pointer with sanitizers
authorJeff King <peff@peff.net>
Mon, 10 Jul 2017 13:24:47 +0000 (09:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 17:02:30 +0000 (10:02 -0700)
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>
Makefile

index 9fb2ff3e82b6bf11313328c309bead8e9792f40d..d03880e6901d5a56470358ab2e58f39e80170700 100644 (file)
--- a/Makefile
+++ b/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