[cfe-commits] r155263 - /cfe/trunk/lib/Driver/Tools.cpp
Bob Wilson
bob.wilson at apple.com
Fri Apr 20 17:21:43 PDT 2012
Author: bwilson
Date: Fri Apr 20 19:21:42 2012
New Revision: 155263
URL: http://llvm.org/viewvc/llvm-project?rev=155263&view=rev
Log:
Link with Foundation whenever -fobjc-link-runtime is used. <rdar://10976177>
The check for excluding libarclite on i386 MacOSX should not apply to
Foundation.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=155263&r1=155262&r2=155263&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Apr 20 19:21:42 2012
@@ -4216,9 +4216,9 @@
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");
}
More information about the cfe-commits
mailing list