From: Reid Spencer Date: Sat, 11 Nov 2006 00:00:31 +0000 (+0000) Subject: Allow ENABLE_OPTIMIZED=0 to turn off optimization (turn on debug). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f5f75dc5c17c74ae3890f7f0619303a5f5ab31c;p=oota-llvm.git Allow ENABLE_OPTIMIZED=0 to turn off optimization (turn on debug). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31655 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.rules b/Makefile.rules index 5af82a82efe..1eb072aad48 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -213,7 +213,7 @@ ifdef ENABLE_PROFILING C.Flags := $(OPTIMIZE_OPTION) -pg -g LD.Flags := $(OPTIMIZE_OPTION) -pg -g else - ifdef ENABLE_OPTIMIZED + ifeq ($(ENABLE_OPTIMIZED),1) BuildMode := Release # Don't use -fomit-frame-pointer on Darwin or FreeBSD. ifneq ($(OS),FreeBSD)