aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/AddCompilerRT.cmake
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-27 21:10:16 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-27 21:10:16 +0000
commit807551b099338b7cc4f66ee567aae20a529dd27e (patch)
treea17d5d3b79498bf78c9fd486acfebf38aaf101bb /cmake/Modules/AddCompilerRT.cmake
parentfc411a9eb44c912f867b49a08d4ea98be89681d9 (diff)
downloadsrc-807551b099338b7cc4f66ee567aae20a529dd27e.tar.gz
src-807551b099338b7cc4f66ee567aae20a529dd27e.zip
Vendor import of compiler-rt release_38 branch r258968:vendor/compiler-rt/compiler-rt-release_38-r258968
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=294943 svn path=/vendor/compiler-rt/compiler-rt-release_38-r258968/; revision=294944; tag=vendor/compiler-rt/compiler-rt-release_38-r258968
Diffstat (limited to 'cmake/Modules/AddCompilerRT.cmake')
-rw-r--r--cmake/Modules/AddCompilerRT.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake
index 6f401b1fa0c4..3c5845f2a2c1 100644
--- a/cmake/Modules/AddCompilerRT.cmake
+++ b/cmake/Modules/AddCompilerRT.cmake
@@ -19,7 +19,7 @@ function(add_compiler_rt_object_libraries name)
set(libname "${name}.${os}")
set(libnames ${libnames} ${libname})
set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS})
- list_union(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
+ list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
endforeach()
else()
foreach(arch ${LIB_ARCHS})
@@ -87,7 +87,7 @@ function(add_compiler_rt_runtime name type)
set(libname "${name}_${os}_dynamic")
set(extra_linkflags_${libname} ${DARWIN_${os}_LINKFLAGS} ${LIB_LINKFLAGS})
endif()
- list_union(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
+ list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
if(LIB_ARCHS_${libname})
list(APPEND libnames ${libname})
set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS} ${LIB_CFLAGS})