aboutsummaryrefslogtreecommitdiffstats
path: root/libm
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2014-09-04 12:35:19 -0700
committerChih-Hung Hsieh <chh@google.com>2014-09-04 12:35:19 -0700
commit356a6249d8072f6cc8038d9939f360c08c583d49 (patch)
treef135d6d7fc01899392a498d67920e970dc0e8eb5 /libm
parent071bed8091cab4e070a1f5e6b2eb0dd1141f0498 (diff)
downloadandroid_bionic-356a6249d8072f6cc8038d9939f360c08c583d49.tar.gz
android_bionic-356a6249d8072f6cc8038d9939f360c08c583d49.tar.bz2
android_bionic-356a6249d8072f6cc8038d9939f360c08c583d49.zip
Disable Clang, due to x86 LDBL_MANT_DIG errors.
Clang -m32 has incorrect sizeof(long double) = 12. With -m64, LDBL_MANT_DIG is incorrect 64. BUG: 17163651 Change-Id: I4b157aa1a8572c3a10aece6070e119a292ab8e83
Diffstat (limited to 'libm')
-rw-r--r--libm/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/libm/Android.mk b/libm/Android.mk
index 994caa0c6..f59b71f2a 100644
--- a/libm/Android.mk
+++ b/libm/Android.mk
@@ -255,6 +255,10 @@ libm_ld_includes := $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/
# libm.a for target.
#
include $(CLEAR_VARS)
+ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
+# Clang has wrong long double sizes for x86.
+LOCAL_CLANG := false
+endif
LOCAL_MODULE:= libm
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_ARM_MODE := arm
@@ -287,6 +291,10 @@ include $(BUILD_STATIC_LIBRARY)
# libm.so for target.
#
include $(CLEAR_VARS)
+ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
+# Clang has wrong long double sizes for x86.
+LOCAL_CLANG := false
+endif
LOCAL_MODULE:= libm
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_SYSTEM_SHARED_LIBRARIES := libc