From 7f5f75dc5c17c74ae3890f7f0619303a5f5ab31c Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 11 Nov 2006 00:00:31 +0000 Subject: [PATCH] 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 --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1