Merge "Disable detection of bugs on global variables."
diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk
index b43b1cc..c911891 100644
--- a/core/config_sanitizers.mk
+++ b/core/config_sanitizers.mk
@@ -85,6 +85,7 @@
my_ldlibs += -lm -lpthread
my_ldflags += -Wl,--no-as-needed
else
+ my_cflags += -mllvm -asan-globals=0
# ASan runtime library must be the first in the link order.
my_shared_libraries := $($(LOCAL_2ND_ARCH_VAR_PREFIX)ADDRESS_SANITIZER_RUNTIME_LIBRARY) \
$(my_shared_libraries) \