Merge "Use gcc to build and test x86_64 long double code."

This commit is contained in:
Chih-Hung Hsieh 2015-06-24 00:15:50 +00:00 committed by Gerrit Code Review
commit d807b9a12d
3 changed files with 20 additions and 2 deletions

View File

@ -580,6 +580,13 @@ libc_common_cflags += -DTARGET_USES_LOGD
endif
use_clang := $(USE_CLANG_PLATFORM_BUILD)
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
ifeq ($(TARGET_ARCH),x86_64)
use_clang := false
endif
ifeq ($(use_clang),)
use_clang := false
endif

View File

@ -3,6 +3,12 @@ LOCAL_PATH:= $(call my-dir)
bionic_coverage := false
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
ifeq ($(TARGET_ARCH),x86_64)
libm_clang := false
endif
# -----------------------------------------------------------------------------
# libm.a
# -----------------------------------------------------------------------------
@ -473,7 +479,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 := true
LOCAL_CLANG := $(libm_clang)
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := \
-DFLT_EVAL_METHOD=0 \
@ -514,7 +520,7 @@ LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
LOCAL_LDFLAGS := -Wl,--version-script,$(LOCAL_PATH)/libm.map
LOCAL_MODULE := libm
LOCAL_CLANG := true
LOCAL_CLANG := $(libm_clang)
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
LOCAL_WHOLE_STATIC_LIBRARIES := libm

View File

@ -137,6 +137,11 @@ libBionicStandardTests_static_libraries := \
libBionicStandardTests_ldlibs_host := \
-lrt \
# Clang/llvm has incompatible long double (fp128) for x86_64.
# https://llvm.org/bugs/show_bug.cgi?id=23897
# This affects most of math_test.cpp.
libBionicStandardTests_clang_target := false
module := libBionicStandardTests
module_tag := optional
build_type := target