OSDN Git Service

Ensure only mips is using GCC to build bionic.
authorElliott Hughes <enh@google.com>
Fri, 1 Apr 2016 17:54:27 +0000 (10:54 -0700)
committerElliott Hughes <enh@google.com>
Fri, 1 Apr 2016 17:54:27 +0000 (10:54 -0700)
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

libc/Android.mk

index e51878d..e9ee7fc 100644 (file)
@@ -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 \