summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-07-10 09:24:47 -0400
committerJunio C Hamano <gitster@pobox.com>2017-07-10 10:02:30 -0700
commitddbc8a6d3e15acba2e145fb9c8cd93c1531cc576 (patch)
tree89e12f02f4f4293ed99529d348c72918fc076b8a /Makefile
parent56b5db30d0dc1e5d20fa28cbb6e76a5a932d812f (diff)
downloadgit-ddbc8a6d3e15acba2e145fb9c8cd93c1531cc576.tar.gz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9fb2ff3e82..d03880e690 100644
--- 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