Allow building libc long double code with clang/llvm.
This requires fix of clang's Android x86 long double size and format. That bug has been fixed in https://android-review.git.corp.google.com/#/c/146254/ Change-Id: I182c6c493085212f88c694356659f72227c8b8c7
This commit is contained in:
parent
9923c8cd13
commit
6fb8e96e5f
@ -817,12 +817,7 @@ include $(BUILD_STATIC_LIBRARY)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(libc_upstream_openbsd_ndk_src_files)
|
LOCAL_SRC_FILES := $(libc_upstream_openbsd_ndk_src_files)
|
||||||
ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
|
LOCAL_CLANG := $(use_clang)
|
||||||
# Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
|
|
||||||
LOCAL_CLANG := false
|
|
||||||
else
|
|
||||||
LOCAL_CLANG := $(use_clang)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
LOCAL_CFLAGS := \
|
||||||
$(libc_common_cflags) \
|
$(libc_common_cflags) \
|
||||||
@ -860,12 +855,7 @@ include $(BUILD_STATIC_LIBRARY)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
|
LOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
|
||||||
ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
|
LOCAL_CLANG := $(use_clang)
|
||||||
# Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
|
|
||||||
LOCAL_CLANG := false
|
|
||||||
else
|
|
||||||
LOCAL_CLANG := $(use_clang)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
LOCAL_CFLAGS := \
|
||||||
$(libc_common_cflags) \
|
$(libc_common_cflags) \
|
||||||
@ -905,12 +895,7 @@ include $(CLEAR_VARS)
|
|||||||
|
|
||||||
LOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
|
LOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
|
||||||
LOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
|
LOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
|
||||||
ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
|
LOCAL_CLANG := $(use_clang)
|
||||||
# Clang has wrong long double size or LDBL_MANT_DIG, http://b/17163651.
|
|
||||||
LOCAL_CLANG := false
|
|
||||||
else
|
|
||||||
LOCAL_CLANG := $(use_clang)
|
|
||||||
endif
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
LOCAL_CFLAGS := \
|
||||||
$(libc_common_cflags) \
|
$(libc_common_cflags) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user