1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Check for DISABLE_ASSERTIONS, not ENABLE_ASSERTIONS

llvm-svn: 27552
This commit is contained in:
Reid Spencer 2006-04-09 23:41:14 +00:00
parent f346623b4a
commit 741c7aeed2

View File

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