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

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bob Wilson 2012-04-21 00:21:42 +00:00
Родитель f676608f60
Коммит 0b1c715684
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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");
}