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-device-build.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm-device-build.mk') diff --git a/llvm-device-build.mk b/llvm-device-build.mk index 156a39b..30baec0 100644 --- a/llvm-device-build.mk +++ b/llvm-device-build.mk @@ -27,9 +27,9 @@ endif ifeq ($(LLVM_ENABLE_ASSERTION),true) LOCAL_CFLAGS := \ + $(LOCAL_CFLAGS) \ -D_DEBUG \ - -UNDEBUG \ - $(LOCAL_CFLAGS) + -UNDEBUG endif ifneq ($(REQUIRES_EH),1) -- cgit v1.1