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

@ -338,11 +338,19 @@ ifeq ($(ENABLE_OPTIMIZED),1)
KEEP_SYMBOLS := 1
endif
else
BuildMode := Debug
CXX.Flags += -g
C.Flags += -g
LD.Flags += -g
KEEP_SYMBOLS := 1
ifdef NO_DEBUG_SYMBOLS
BuildMode := Unoptimized
CXX.Flags +=
C.Flags +=
LD.Flags +=
KEEP_SYMBOLS := 1
else
BuildMode := Debug
CXX.Flags += -g
C.Flags += -g
LD.Flags += -g
KEEP_SYMBOLS := 1
endif
endif
ifeq ($(ENABLE_PROFILING),1)