summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds/statsd/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/statsd/Android.mk b/cmds/statsd/Android.mk
index ca0611b0ca05..525ddb38c1e9 100644
--- a/cmds/statsd/Android.mk
+++ b/cmds/statsd/Android.mk
@@ -135,6 +135,12 @@ LOCAL_SHARED_LIBRARIES := $(statsd_common_shared_libraries) \
LOCAL_MODULE_CLASS := EXECUTABLES
+# Enable sanitizer on eng builds
+ifeq ($(TARGET_BUILD_VARIANT),eng)
+ LOCAL_CLANG := true
+ LOCAL_SANITIZE := address unsigned-integer-overflow signed-integer-overflow
+endif
+
LOCAL_INIT_RC := statsd.rc
include $(BUILD_EXECUTABLE)