зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
f676608f60
Коммит
0b1c715684
|
@ -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");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче