summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-04-09 23:41:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-04-09 23:41:14 +0000
commitf9f431c3b5bed1505055bd79a1dc8e723380021e (patch)
tree020574c79076657a6a186647af9bcd5843f5b19e /Makefile.rules
parent1a5a551919198a7e508624c6f555119815e4c66e (diff)
downloadllvm-f9f431c3b5bed1505055bd79a1dc8e723380021e.tar.gz
llvm-f9f431c3b5bed1505055bd79a1dc8e723380021e.tar.bz2
llvm-f9f431c3b5bed1505055bd79a1dc8e723380021e.tar.xz
Check for DISABLE_ASSERTIONS, not ENABLE_ASSERTIONS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile.rules b/Makefile.rules
index c1225402c1..dd307a1435 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -224,18 +224,13 @@ endif
# If ENABLE_ASSERTIONS=1 is specified (make command line or configured),
# then enable assertions by defining the appropriate preprocessor symbols.
-ifdef ENABLE_ASSERTIONS
- ifdef ENABLE_OPTIMIZED
- BuildMode := $(BuildMode)+Asserts
- endif
- CXX.Flags += -D_DEBUG
- C.Flags += -D_DEBUG
-else
- ifndef ENABLE_OPTIMIZED
+ifdef DISABLE_ASSERTIONS
BuildMode := $(BuildMode)-Asserts
- endif
CXX.Flags += -DNDEBUG
C.Flags += -DNDEBUG
+else
+ CXX.Flags += -D_DEBUG
+ C.Flags += -D_DEBUG
endif
CXX.Flags += $(CXXFLAGS)
@@ -1699,3 +1694,4 @@ printvars::
$(Echo) "LexFiles : " '$(LexFiles)'
$(Echo) "Module : " '$(Module)'
$(Echo) "FilesToConfig: " '$(FilesToConfigPATH)'
+ $(Echo) "SubDirs : " '$(SubDirs)'