Add "Unoptimized" build (NO_DEBUG_SYMBOLS=1 ENABLE_OPTIMIZED=1), for reducing

disk space, and increasing battery lifetime. :)

llvm-svn: 88978
This commit is contained in:
Daniel Dunbar 2009-11-16 22:37:52 +00:00
parent dc679f88c8
commit 08d4ab9663
1 changed files with 13 additions and 5 deletions

View File

@ -337,6 +337,13 @@ ifeq ($(ENABLE_OPTIMIZED),1)
LD.Flags += -g
KEEP_SYMBOLS := 1
endif
else
ifdef NO_DEBUG_SYMBOLS
BuildMode := Unoptimized
CXX.Flags +=
C.Flags +=
LD.Flags +=
KEEP_SYMBOLS := 1
else
BuildMode := Debug
CXX.Flags += -g
@ -344,6 +351,7 @@ else
LD.Flags += -g
KEEP_SYMBOLS := 1
endif
endif
ifeq ($(ENABLE_PROFILING),1)
BuildMode := $(BuildMode)+Profile