Disable clang compilation for x86_64, mips, mips64.
Cannot boot up in emulator if libunwind is compiled with clang.
This change should allow clang compiled AOSP to boot up on x86_64,
but mips and mips64 still have other problems.
BUG: 25195800
Change-Id: Ifa8e1e9bdd7c15e08fe102875edc3ded38c0a048
diff --git a/Android.build.mk b/Android.build.mk
index fc9324b..f7b6fe1 100644
--- a/Android.build.mk
+++ b/Android.build.mk
@@ -16,6 +16,11 @@
include $(CLEAR_VARS)
+ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),mips mips64 x86_64))
+# Many init services failed to start with clang for x86_64, mips, mips64
+LOCAL_CLANG := false
+endif
+
LOCAL_MODULE := $(libunwind_module)
LOCAL_MODULE_TAGS := $(libunwind_module_tag)
ifeq ($(libunwind_build_type),host)