forked from OSchip/llvm-project
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:
parent
dc679f88c8
commit
08d4ab9663
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue