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 | dee8dbed1e30b78cb65f4ab3a7e98f91e2059c03 (patch) | |
tree | a3450ad6b436089b293731495e52d53279ec90c5 | |
parent | 4c269e2feb230d4380c0b3cd72da517bd2222023 (diff) | |
download | external_llvm-dee8dbed1e30b78cb65f4ab3a7e98f91e2059c03.zip external_llvm-dee8dbed1e30b78cb65f4ab3a7e98f91e2059c03.tar.gz external_llvm-dee8dbed1e30b78cb65f4ab3a7e98f91e2059c03.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
-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) |