LLVM_ASM_PARSER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_ASM_PARSER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_ASM_PARSER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_ASM_PARSER(ARM)
LLVM_ASM_PARSER(AArch64)
LLVM_ASM_PRINTER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_ASM_PRINTER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_ASM_PRINTER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_ASM_PRINTER(ARM)
LLVM_ASM_PRINTER(AArch64)
LLVM_DISASSEMBLER(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_DISASSEMBLER(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_DISASSEMBLER(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_DISASSEMBLER(ARM)
LLVM_DISASSEMBLER(AArch64)
LLVM_TARGET(Mips)
#elif defined(__i386__) || defined(__x86_64__)
LLVM_TARGET(X86)
+
+#if defined(FORCE_BUILD_ARM)
+ LLVM_TARGET(ARM)
+#endif
+
#elif defined(__aarch64__)
LLVM_TARGET(ARM)
LLVM_TARGET(AArch64)
LOCAL_WHOLE_STATIC_LIBRARIES_arm64 += $(llvm_aarch64_static_libraries)
LOCAL_WHOLE_STATIC_LIBRARIES_arm64 += $(llvm_arm_static_libraries)
+ifeq ($(BUILD_ARM_FOR_X86),true)
+LOCAL_WHOLE_STATIC_LIBRARIES_x86 += $(llvm_arm_static_libraries)
+LOCAL_WHOLE_STATIC_LIBRARIES_x86_64 += $(llvm_arm_static_libraries)
+endif
+
LOCAL_WHOLE_STATIC_LIBRARIES += $(llvm_post_static_libraries)
#LOCAL_LDLIBS := -ldl -lpthread