mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Driver] Only link in arclite if deploying to pre-8.0 iOS or pre-10.10 OS X.
<rdar://problem/16749280> Swift SVN r20663
This commit is contained in:
@@ -594,10 +594,12 @@ Job *darwin::Linker::constructJob(const JobAction &JA,
|
||||
break;
|
||||
}
|
||||
|
||||
assert(Triple.isOSDarwin());
|
||||
bool wantsObjCRuntime =
|
||||
Triple.isiOS() ? Triple.isOSVersionLT(8) : Triple.isMacOSXVersionLT(10, 10);
|
||||
if (Args.hasFlag(options::OPT_link_objc_runtime,
|
||||
options::OPT_no_link_objc_runtime,
|
||||
/*default=*/true)) {
|
||||
// FIXME: Copied from Clang's ToolChains.cpp.
|
||||
/*default=*/wantsObjCRuntime)) {
|
||||
llvm::SmallString<128> ARCLiteLib(D.getSwiftProgramPath());
|
||||
llvm::sys::path::remove_filename(ARCLiteLib); // 'swift'
|
||||
llvm::sys::path::remove_filename(ARCLiteLib); // 'bin'
|
||||
|
||||
Reference in New Issue
Block a user