Link with Foundation whenever -fobjc-link-runtime is used. <rdar://10976177>

The check for excluding libarclite on i386 MacOSX should not apply to
Foundation.

llvm-svn: 155263
This commit is contained in:
Bob Wilson
2012-04-21 00:21:42 +00:00
parent b403a15ded
commit 7dda0cdcd7

View File

@@ -4216,9 +4216,9 @@ void darwin::Link::ConstructJob(Compilation &C, const JobAction &JA,
if ((!runtime.HasARC && isObjCAutoRefCount(Args)) ||
!runtime.HasSubscripting)
getDarwinToolChain().AddLinkARCArgs(Args, CmdArgs);
CmdArgs.push_back("-framework");
CmdArgs.push_back("Foundation");
}
CmdArgs.push_back("-framework");
CmdArgs.push_back("Foundation");
// Link libobj.
CmdArgs.push_back("-lobjc");
}