summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-01 10:54:27 -0700
committerElliott Hughes <enh@google.com>2016-04-01 10:54:27 -0700
commitcf73e00ddeb16c428effe45c91c0fadb844e2a61 (patch)
tree5f9f59cfa49851fc8a7439cc457146894efc0d1c
parent538bdf96231d05ff36f67cad4f3daba1087523e1 (diff)
Ensure only mips is using GCC to build bionic.
MIPS still have ld128 and 16-bit atomics issues with clang, so we can't just remove this yet. Bug: http://b/25291096 Change-Id: I2645ebf3af04e1a4008d70da780c04240e3d7a85
-rw-r--r--libc/Android.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/libc/Android.mk b/libc/Android.mk
index e51878d40..e9ee7fc4e 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -577,17 +577,13 @@ libc_common_cflags := \
-Wall -Wextra -Wunused \
-Wno-deprecated-declarations \
-use_clang := $(USE_CLANG_PLATFORM_BUILD)
+use_clang := true
# b/25291096, Clang/llvm compiled libc.so for mips/mips64 failed to boot.
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),mips mips64))
use_clang := false
endif
-ifeq ($(use_clang),)
- use_clang := true
-endif
-
# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
libc_common_cflags += \
-Werror=pointer-to-int-cast \