OSDN Git Service

Always build libm with clang.
authorElliott Hughes <enh@google.com>
Thu, 11 Jun 2015 05:55:09 +0000 (22:55 -0700)
committerElliott Hughes <enh@google.com>
Thu, 11 Jun 2015 05:55:09 +0000 (22:55 -0700)
Change-Id: I00df3b83dfa76a7e12f097fb622ceaec3e2bb5a4

libm/Android.mk

index a0c4641..1e29396 100644 (file)
@@ -3,11 +3,6 @@ LOCAL_PATH:= $(call my-dir)
 
 bionic_coverage := false
 
-ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
-# Clang has wrong long double sizes for x86.
-libm_clang := false
-endif
-
 # -----------------------------------------------------------------------------
 # libm.a
 # -----------------------------------------------------------------------------
@@ -478,7 +473,7 @@ LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/
 LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/
 
-LOCAL_CLANG := $(libm_clang)
+LOCAL_CLANG := true
 LOCAL_ARM_MODE := arm
 LOCAL_CFLAGS := \
     -DFLT_EVAL_METHOD=0 \
@@ -515,7 +510,7 @@ LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
 LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
 
 LOCAL_MODULE := libm
-LOCAL_CLANG := $(libm_clang)
+LOCAL_CLANG := true
 LOCAL_SYSTEM_SHARED_LIBRARIES := libc
 LOCAL_WHOLE_STATIC_LIBRARIES := libm