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
This commit is contained in:
Reid Spencer 2006-11-11 00:00:31 +00:00
parent 94e509caea
commit 7f5f75dc5c

View File

@ -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)