Build the ASAN RTL without RTTI.
RTTI is on by default for the host compiler, which means that the ASAN
libs will depend on having a C++ RTL. This would mean that pure C code
could not be instrumented with ASAN.
Bug: 19566396
(cherry-pick of commit: 28b72eddd54cb1287dd7daae853e8e4b78fa17eb)
Change-Id: I333f978c5c623997b267ca1bd73ef4f351cae545
diff --git a/lib/asan/Android.mk b/lib/asan/Android.mk
index bfc13e2..a58f9e9 100644
--- a/lib/asan/Android.mk
+++ b/lib/asan/Android.mk
@@ -100,7 +100,8 @@
-Wno-non-virtual-dtor \
-Wno-sign-compare \
-Wno-unused-parameter \
- -std=c++11
+ -std=c++11 \
+ -fno-rtti \
asan_test_files := \
tests/asan_globals_test.cc \