Build RS runtime libraries using our arm and aarch64 triples only.
Bug: 17333374
Without this change, we might end up using different (broken) calling
conventions on non-ARM architectures. This ensures that all C source
files get built the same. Any .ll files can still use the appropriate
target arch-specific features.
Change-Id: I2658c49620d297cb1ef8b96b5b5d1597f5fd7361
diff --git a/driver/runtime/build_bc_lib_internal.mk b/driver/runtime/build_bc_lib_internal.mk
index 51e614b..28c2961 100644
--- a/driver/runtime/build_bc_lib_internal.mk
+++ b/driver/runtime/build_bc_lib_internal.mk
@@ -44,6 +44,7 @@
-emit-llvm \
-target $(BCC_RS_TRIPLE) \
-fsigned-char \
+ $($(LOCAL_2ND_ARCH_VAR_PREFIX)RS_TRIPLE_CFLAGS) \
$(LOCAL_CFLAGS) \
$(bc_translated_clang_cc1_cflags)