Skip to content

Commit 25bc0de

Browse files
author
Chris Bieneman
committed
[darwin] [builtins] Stop generating cc_kext_ios5 and move iOS architectures out of cc_kext into cc_kext_ios
Summary: This corresponds to a patch to compiler-rt (D13112). Xcode 7 doesn't support targeting iOS5 and earlier. Instead of just dropping cc_kext_ios5, I've repurposed it to cc_kext_ios, and I'm pulling the iOS architectures out of cc_kext. Putting OS X and iOS slices inside the same archive was just odd. Reviewers: bogner, bob.wilson Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13113 llvm-svn: 248442
1 parent eb71c99 commit 25bc0de

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

clang/lib/Driver/ToolChains.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,12 +620,10 @@ void DarwinClang::AddCCKextLibArgs(const ArgList &Args,
620620
llvm::sys::path::append(P, "lib", "darwin");
621621

622622
// Use the newer cc_kext for iOS ARM after 6.0.
623-
if (!isTargetIPhoneOS() || isTargetIOSSimulator() ||
624-
getTriple().getArch() == llvm::Triple::aarch64 ||
625-
!isIPhoneOSVersionLT(6, 0)) {
626-
llvm::sys::path::append(P, "libclang_rt.cc_kext.a");
623+
if (isTargetIPhoneOS()) {
624+
llvm::sys::path::append(P, "libclang_rt.cc_kext_ios.a");
627625
} else {
628-
llvm::sys::path::append(P, "libclang_rt.cc_kext_ios5.a");
626+
llvm::sys::path::append(P, "libclang_rt.cc_kext.a");
629627
}
630628

631629
// For now, allow missing resource libraries to support developers who may

clang/runtime/compiler-rt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ RuntimeLibrary.darwin.Configs += ios.a profile_ios.a
8989
endif
9090

9191
ifneq ($(IOS_SDK),)
92-
RuntimeLibrary.darwin.Configs += cc_kext_ios5.a
92+
RuntimeLibrary.darwin.Configs += cc_kext_ios.a
9393
endif
9494

9595
ifneq ($(IOSSIM_SDK),)

0 commit comments

Comments
 (0)