From fd6aea25184fd0735922461b88f059ee547844c3 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 3 May 2012 14:47:20 -0700 Subject: 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 --- llvm-host-build.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm-host-build.mk') 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) -- cgit v1.1