diff options
| author | 2018-03-21 11:00:53 -0700 | |
|---|---|---|
| committer | 2018-03-21 11:04:37 -0700 | |
| commit | cd7f90053dab8d50120d09949b758978c5dbc37a (patch) | |
| tree | b9b2ae1e6869002a53db6c12309596cb24d8c398 | |
| parent | a946d88011340e75345ec0835ce8b383bd65ed74 (diff) | |
Enable sanitizer on statsd eng build.
Bug: 74946342
Test: manual
Change-Id: I287def435d077670814db50e4d8398ecee539b74
| -rw-r--r-- | cmds/statsd/Android.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/statsd/Android.mk b/cmds/statsd/Android.mk index 5d6a1d1a6c15..bb0f917adbaf 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) |