From ddbc8a6d3e15acba2e145fb9c8cd93c1531cc576 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 10 Jul 2017 09:24:47 -0400 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- Makefile | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.4.GIT