diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-04-21 00:21:42 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-04-21 00:21:42 +0000 |
commit | 0b1c7156844f1e0e37766a64879b1d1d77fc5385 (patch) | |
tree | 77a44bcac7a292631aa911946365b93f6f399655 /lib/Driver/Tools.cpp | |
parent | f676608f60c523c64ccb41c70b5fdf464855ad16 (diff) |
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
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 57c0645635..6165c15fef 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); } |