aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-host-build.mk
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-05-03 14:47:20 -0700
committerStephen Hines <srhines@google.com>2012-05-03 14:47:20 -0700
commitfd6aea25184fd0735922461b88f059ee547844c3 (patch)
tree09de2d7914a6a404d4d32f9d8434ccb091ae62bb /llvm-host-build.mk
parent0bf048c82b95f4e0b3227d275a347436197cff7f (diff)
downloadexternal_llvm-fd6aea25184fd0735922461b88f059ee547844c3.zip
external_llvm-fd6aea25184fd0735922461b88f059ee547844c3.tar.gz
external_llvm-fd6aea25184fd0735922461b88f059ee547844c3.tar.bz2
Fix assert handling for LLVM.
If we undefined NDEBUG first, the system-wide -DNDEBUG will override it, thus causing asserts to still remain off. Change-Id: I84342ca36595bbd7e310ea19c6907938fba4cee7
Diffstat (limited to 'llvm-host-build.mk')
-rw-r--r--llvm-host-build.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index 67c3808..9fd7435 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -13,9 +13,9 @@ LOCAL_CFLAGS := \
ifeq ($(LLVM_ENABLE_ASSERTION),true)
LOCAL_CFLAGS := \
+ $(LOCAL_CFLAGS) \
-D_DEBUG \
- -UNDEBUG \
- $(LOCAL_CFLAGS)
+ -UNDEBUG
endif
ifneq ($(REQUIRES_EH),1)