[llvm-commits] [llvm] r88978 - /llvm/trunk/Makefile.rules
Daniel Dunbar
daniel at zuster.org
Mon Nov 16 14:37:53 PST 2009
Author: ddunbar
Date: Mon Nov 16 16:37:52 2009
New Revision: 88978
URL: http://llvm.org/viewvc/llvm-project?rev=88978&view=rev
Log:
Add "Unoptimized" build (NO_DEBUG_SYMBOLS=1 ENABLE_OPTIMIZED=1), for reducing
disk space, and increasing battery lifetime. :)
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=88978&r1=88977&r2=88978&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Mon Nov 16 16:37:52 2009
@@ -338,11 +338,19 @@
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)
More information about the llvm-commits
mailing list