mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix profile builds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5551 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8166b7cdb8
commit
1d1e5b598e
@ -153,18 +153,19 @@ CPPFLAGS += -D_GNU_SOURCE
|
|||||||
|
|
||||||
# -Wno-unused-parameter
|
# -Wno-unused-parameter
|
||||||
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include
|
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 a cpp file, don't link...
|
||||||
Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
|
Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
|
||||||
CompileG := $(Compile) -g -D_DEBUG
|
CompileG := $(Compile) -g -D_DEBUG
|
||||||
CompileO := $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fshort-enums -fomit-frame-pointer
|
CompileO := $(Compile) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer
|
||||||
CompileP := $(CompileO) $(PROFILE)
|
CompileP := $(Compile) $(CompileOptimizeOpts) -felide-constructors $(PROFILE)
|
||||||
|
|
||||||
# Compile a c file, don't link...
|
# Compile a c file, don't link...
|
||||||
CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
|
CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
|
||||||
CompileCG := $(CompileC) -g -D_DEBUG
|
CompileCG := $(CompileC) -g -D_DEBUG
|
||||||
CompileCO := $(CompileC) -O3 -DNDEBUG -finline-functions -fshort-enums -fomit-frame-pointer
|
CompileCO := $(CompileC) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer
|
||||||
CompileCP := $(CompileCO) $(PROFILE)
|
CompileCP := $(CompileC) $(CompileOptimizeOpts) -felide-constructors $(PROFILE)
|
||||||
|
|
||||||
|
|
||||||
# Link final executable
|
# Link final executable
|
||||||
|
@ -153,18 +153,19 @@ CPPFLAGS += -D_GNU_SOURCE
|
|||||||
|
|
||||||
# -Wno-unused-parameter
|
# -Wno-unused-parameter
|
||||||
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include
|
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 a cpp file, don't link...
|
||||||
Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
|
Compile := $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
|
||||||
CompileG := $(Compile) -g -D_DEBUG
|
CompileG := $(Compile) -g -D_DEBUG
|
||||||
CompileO := $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fshort-enums -fomit-frame-pointer
|
CompileO := $(Compile) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer
|
||||||
CompileP := $(CompileO) $(PROFILE)
|
CompileP := $(Compile) $(CompileOptimizeOpts) -felide-constructors $(PROFILE)
|
||||||
|
|
||||||
# Compile a c file, don't link...
|
# Compile a c file, don't link...
|
||||||
CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
|
CompileC := $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
|
||||||
CompileCG := $(CompileC) -g -D_DEBUG
|
CompileCG := $(CompileC) -g -D_DEBUG
|
||||||
CompileCO := $(CompileC) -O3 -DNDEBUG -finline-functions -fshort-enums -fomit-frame-pointer
|
CompileCO := $(CompileC) $(CompileOptimizeOpts) -felide-constructors -fomit-frame-pointer
|
||||||
CompileCP := $(CompileCO) $(PROFILE)
|
CompileCP := $(CompileC) $(CompileOptimizeOpts) -felide-constructors $(PROFILE)
|
||||||
|
|
||||||
|
|
||||||
# Link final executable
|
# Link final executable
|
||||||
|
Loading…
Reference in New Issue
Block a user