From 1d1e5b598e760a8fefb1e484cbd052ab73076c59 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Feb 2003 16:56:30 +0000 Subject: [PATCH] Fix profile builds git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5551 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.common | 9 +++++---- Makefile.rules | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile.common b/Makefile.common index 0fc2d762f91..eb33df93526 100644 --- a/Makefile.common +++ b/Makefile.common @@ -153,18 +153,19 @@ CPPFLAGS += -D_GNU_SOURCE # -Wno-unused-parameter CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include +CompileOptimizeOpts := -O3 -DNDEBUG -finline-functions -fshort-enums # Compile a cpp file, don't link... Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts) CompileG := $(Compile) -g -D_DEBUG -CompileO := $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fshort-enums -fomit-frame-pointer -CompileP := $(CompileO) $(PROFILE) +CompileO := $(Compile) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer +CompileP := $(Compile) $(CompileOptimizeOpts) -felide-constructors $(PROFILE) # Compile a c file, don't link... CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts) CompileCG := $(CompileC) -g -D_DEBUG -CompileCO := $(CompileC) -O3 -DNDEBUG -finline-functions -fshort-enums -fomit-frame-pointer -CompileCP := $(CompileCO) $(PROFILE) +CompileCO := $(CompileC) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer +CompileCP := $(CompileC) $(CompileOptimizeOpts) -felide-constructors $(PROFILE) # Link final executable diff --git a/Makefile.rules b/Makefile.rules index 0fc2d762f91..eb33df93526 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -153,18 +153,19 @@ CPPFLAGS += -D_GNU_SOURCE # -Wno-unused-parameter CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include +CompileOptimizeOpts := -O3 -DNDEBUG -finline-functions -fshort-enums # Compile a cpp file, don't link... Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts) CompileG := $(Compile) -g -D_DEBUG -CompileO := $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fshort-enums -fomit-frame-pointer -CompileP := $(CompileO) $(PROFILE) +CompileO := $(Compile) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer +CompileP := $(Compile) $(CompileOptimizeOpts) -felide-constructors $(PROFILE) # Compile a c file, don't link... CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts) CompileCG := $(CompileC) -g -D_DEBUG -CompileCO := $(CompileC) -O3 -DNDEBUG -finline-functions -fshort-enums -fomit-frame-pointer -CompileCP := $(CompileCO) $(PROFILE) +CompileCO := $(CompileC) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer +CompileCP := $(CompileC) $(CompileOptimizeOpts) -felide-constructors $(PROFILE) # Link final executable -- 2.34.1