summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-10-09 18:38:34 +0000
committerChris Bieneman <beanz@apple.com>2015-10-09 18:38:34 +0000
commit2c23a80bbfeaa0e6351fa8c9a717fdbdb942b8d2 (patch)
treec15e50e2e49c997535c84c0bcdd8d68edf2e2dfa
parent6b40936b81f1f605ddef743f08f9834e8e85427e (diff)
downloadbcm5719-llvm-2c23a80bbfeaa0e6351fa8c9a717fdbdb942b8d2.tar.gz
bcm5719-llvm-2c23a80bbfeaa0e6351fa8c9a717fdbdb942b8d2.zip
[CMake] [Darwin] [builtins] Need to special case the naming of the OS X cc_kext builtin library.
llvm-svn: 249870
-rw-r--r--compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
index e35fe556e7e..1e8ebdacd1e 100644
--- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -293,7 +293,11 @@ macro(darwin_add_builtin_libraries)
DEFS KERNEL_USE
PARENT_TARGET builtins)
endforeach()
- darwin_lipo_libs(clang_rt.cc_kext_${os}
+ set(archive_name clang_rt.cc_kext_${os})
+ if(${os} STREQUAL "osx")
+ set(archive_name clang_rt.cc_kext)
+ endif()
+ darwin_lipo_libs(${archive_name}
PARENT_TARGET builtins
LIPO_FLAGS ${${os}_cc_kext_lipo_flags}
DEPENDS ${${os}_cc_kext_libs}
OpenPOWER on IntegriCloud