From dee8dbed1e30b78cb65f4ab3a7e98f91e2059c03 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 16 Nov 2009 22:37:52 +0000 Subject: [PATCH] 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 --- Makefile.rules | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index b4a5a3798c0..6bda5640ecd 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) -- 2.34.1