diff options
author | Elliott Hughes <enh@google.com> | 2016-02-04 10:35:25 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-02-04 10:35:25 -0800 |
commit | 627819ecceef09744c0aeb615b7131b9e39974a3 (patch) | |
tree | 7bba17054b62a4b3de811be68aa2a1fae9bc1ec5 /Android.mk | |
parent | a80590655471025cfdbbd1328afc3ae5e6feab6a (diff) | |
download | fdlibm-627819ecceef09744c0aeb615b7131b9e39974a3.tar.gz |
Build fdlibm with clang.
Apparently mips GCC has problems with this (horrendous) code.
Change-Id: I1ee241d4d9a61a38295b84cb103a8488cd77c006
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -48,11 +48,10 @@ cflags := -D_IEEE_LIBM # Android only supports little-endian. cflags += -D__LITTLE_ENDIAN -# Disable GCC optimizations that interact badly with this crufty +# Disable compiler optimizations that interact badly with this crufty # library (see their own admission in 'readme'). Without this, we # fail StrictMath tests on x86. cflags += -fno-strict-aliasing -cflags += -ffloat-store # c99 specifies a less relaxed floating point model that does not enable # floating point expession contraction (e.g: fused multiply-add operations). @@ -63,10 +62,10 @@ cflags += -std=c99 # include $(CLEAR_VARS) -LOCAL_SRC_FILES:= $(src_files) LOCAL_CFLAGS := $(cflags) +LOCAL_CLANG := true LOCAL_MODULE := libfdlibm -LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk +LOCAL_SRC_FILES:= $(src_files) include $(BUILD_STATIC_LIBRARY) @@ -75,9 +74,9 @@ include $(BUILD_STATIC_LIBRARY) # include $(CLEAR_VARS) -LOCAL_SRC_FILES:= $(src_files) LOCAL_CFLAGS := $(cflags) +LOCAL_CLANG := true LOCAL_MODULE := libfdlibm -LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_MULTILIB := both +LOCAL_SRC_FILES:= $(src_files) include $(BUILD_HOST_STATIC_LIBRARY) |