diff options
author | Shih-wei Liao <sliao@google.com> | 2010-05-04 03:19:48 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-05-04 03:21:56 -0700 |
commit | 44ce444e5ee78c3230e92439366b48a13559ccd6 (patch) | |
tree | 0df1e0db31ce85df2b25e1291a876abd7e1db451 /llvm-device-build.mk | |
parent | a7752e7017a1ca50973b6b3dcce5d6d484090ba9 (diff) | |
download | external_llvm-44ce444e5ee78c3230e92439366b48a13559ccd6.zip external_llvm-44ce444e5ee78c3230e92439366b48a13559ccd6.tar.gz external_llvm-44ce444e5ee78c3230e92439366b48a13559ccd6.tar.bz2 |
enable assertion
Change-Id: I1db0884c86ac6744f3c95ae10cefc75e762a79c7
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r-- | llvm-device-build.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk index 6e008ca..774d051 100644 --- a/llvm-device-build.mk +++ b/llvm-device-build.mk @@ -1,5 +1,4 @@ LOCAL_CFLAGS := \ - -D_DEBUG \ -D_GNU_SOURCE \ -D__STDC_LIMIT_MACROS \ -D__STDC_CONSTANT_MACROS \ @@ -12,6 +11,13 @@ LOCAL_CFLAGS := \ -Wwrite-strings \ $(LOCAL_CFLAGS) +ifeq ($(LLVM_ENABLE_ASSERTION),true) +LOCAL_CFLAGS := \ + -D_DEBUG \ + -UNDEBUG \ + $(LOCAL_CFLAGS) +endif + ifneq ($(REQUIRES_EH),1) LOCAL_CFLAGS += -fno-exceptions else |