summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-07-31 17:08:34 +0000
committerNico Weber <nicolasweber@gmx.de>2019-07-31 17:08:34 +0000
commite4001bacc2c62e16b03ead066043228fea77a8d7 (patch)
tree28f8e6a991bd7b74e3d4343c337c7cce6baf7e9c /compiler-rt
parent435cdecdf721e39ec3b732f0affde970eadac525 (diff)
downloadbcm5719-llvm-e4001bacc2c62e16b03ead066043228fea77a8d7.tar.gz
bcm5719-llvm-e4001bacc2c62e16b03ead066043228fea77a8d7.zip
gn build: Fix redundant object files in builtin lib.
compiler-rt's builtin library has generic implementations of many functions, and then per-arch optimized implementations of some. In the CMake build, both filter_builtin_sources() and an explicit loop at the end of the build file (see D37166) filter out the generic versions if a per-arch file is present. The GN build wasn't doing this filtering. Just do the filtering manually and explicitly, instead of being clever. While here, also remove files from the mingw/arm build that are redundantly listed after D39938 / r318139 (both from the CMake and the GN build). While here, also fix a target_os -> target_cpu typo. Differential Revision: https://reviews.llvm.org/D65512 llvm-svn: 367448
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/builtins/CMakeLists.txt18
1 files changed, 0 insertions, 18 deletions
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 320ff58d3d3..4062efcb359 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -431,25 +431,7 @@ if(MINGW)
arm/aeabi_uidivmod.S
arm/aeabi_uldivmod.S
arm/chkstk.S
- divmoddi4.c
- divmodsi4.c
- divdi3.c
- divsi3.c
- fixdfdi.c
- fixsfdi.c
- fixunsdfdi.c
- fixunssfdi.c
- floatdidf.c
- floatdisf.c
- floatundidf.c
- floatundisf.c
mingw_fixfloat.c
- moddi3.c
- udivmoddi4.c
- udivmodsi4.c
- udivsi3.c
- umoddi3.c
- emutls.c
)
filter_builtin_sources(arm_SOURCES EXCLUDE arm_SOURCES "${arm_SOURCES};${GENERIC_SOURCES}")
elseif(NOT WIN32)
OpenPOWER on IntegriCloud