diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-16 22:37:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-16 22:37:52 +0000 |
commit | dbe77e5158a4729643feac6871dadd08e3f1c4b4 (patch) | |
tree | a3450ad6b436089b293731495e52d53279ec90c5 /Makefile.rules | |
parent | 7c5bade5afd43e2fefe0287dd19d4874f2eac704 (diff) | |
download | external_llvm-dbe77e5158a4729643feac6871dadd08e3f1c4b4.zip external_llvm-dbe77e5158a4729643feac6871dadd08e3f1c4b4.tar.gz external_llvm-dbe77e5158a4729643feac6871dadd08e3f1c4b4.tar.bz2 |
Add "Unoptimized" build (NO_DEBUG_SYMBOLS=1 ENABLE_OPTIMIZED=1), for reducing
disk space, and increasing battery lifetime. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Makefile.rules b/Makefile.rules index b4a5a37..6bda564 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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) |