[CMake] [Darwin] [builtins] Need to special case the naming of the OS X cc_kext builtin library.

llvm-svn: 249870
This commit is contained in:
Chris Bieneman 2015-10-09 18:38:34 +00:00
parent 6b40936b81
commit 2c23a80bbf
1 changed files with 5 additions and 1 deletions

View File

@ -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}