summaryrefslogtreecommitdiff
path: root/tools/Android.mk
diff options
context:
space:
mode:
authorDevon Davies <devon.davies@intel.com>2014-01-08 16:07:06 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2014-01-08 17:20:00 +0000
commit67c80f8d816259067b7474fe6f8c79915d6483f0 (patch)
tree7d899876e8371ebb071a63fdc940b553b4bfddc8 /tools/Android.mk
parent0ec9c94bea6d1ba3969a03ebf75494115e24edf6 (diff)
build: Added -UNDEBUG to tools/Android.mk
NDEBUG is defined by default in Android and causes assert(x) to be defined as void(x). This change ensures that asserts work as expected in tools. This flag is already inside tests/Android.mk Reviewed-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Devon Davies <devon.davies@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'tools/Android.mk')
-rw-r--r--tools/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/Android.mk b/tools/Android.mk
index 4a19b6c2..5bda4897 100644
--- a/tools/Android.mk
+++ b/tools/Android.mk
@@ -40,7 +40,7 @@ define add_tool
LOCAL_CFLAGS += -DHAVE_TERMIOS_H
LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
- LOCAL_CFLAGS += -DANDROID
+ LOCAL_CFLAGS += -DANDROID -UNDEBUG
LOCAL_CFLAGS += -std=c99
# FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
LOCAL_CFLAGS += -Wno-error=return-type