mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
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>
This commit is contained in:
parent
0ec9c94bea
commit
67c80f8d81
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user