From e5aa8f38a760773628b939a114ceb65bd0b5f8eb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 24 May 2006 18:34:08 +0000 Subject: [PATCH] Don't use -fomit-frame-pointer on darwin, it breaks stacktrace collection. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28451 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index b3b10e557fe..96f2343fe04 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -208,8 +208,11 @@ else BuildMode := Release # Don't use -fomit-frame-pointer on FreeBSD ifneq ($(OS),FreeBSD) + # Don't use -fomit-frame-pointer on Darwin, it breaks backtraces. + ifneq ($(OS),Darwin) OmitFramePointer := -fomit-frame-pointer endif + endif CXX.Flags := -O3 -finline-functions -felide-constructors $(OmitFramePointer) C.Flags := -O3 $(OmitFramePointer) LD.Flags := -O3 -- 2.34.1