Do not build libjavacore with clang for mips64
Clang generates illegal instruction on mips64r6 with -O0.
https://dmz-portal.mips.com/bugz/show_bug.cgi?id=2218
Bug: 25928358
Change-Id: I8ccd644f1509b4b341384fa67facc07cb966dfa8
diff --git a/NativeCode.mk b/NativeCode.mk
index 44bc511..d900832 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -86,6 +86,9 @@
LOCAL_STATIC_LIBRARIES += $(core_static_libraries) libziparchive libbase
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjavacore
+# clang has issue with local static vars on mips64
+# b/25928358, illegal instruction on mips64r6 with -O0
+LOCAL_CLANG_mips64 := false
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk
LOCAL_CXX_STL := libc++
include $(BUILD_SHARED_LIBRARY)