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