ccc: Add fairly complete argument translation for Darwin link step.
- Some things are still hardcoded, and macosx-version-min comparison
isn't implemented, but otherwise this very closely matches gcc.
- The one exception is that arguments (like -framework or -Wl,) which are
treated as linker inputs instead of options are not being
forwarded yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62059 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/HostInfo.py b/tools/ccc/ccclib/HostInfo.py
index 926152c..a12d572 100644
--- a/tools/ccc/ccclib/HostInfo.py
+++ b/tools/ccc/ccclib/HostInfo.py
@@ -31,7 +31,7 @@
def getToolChainForArch(self, arch):
if arch in ('i386', 'x86_64'):
- return ToolChain.Darwin_ToolChain(self.driver)
+ return ToolChain.Darwin10_X86_ToolChain(self.driver)
return ToolChain.Generic_GCC_ToolChain(self.driver)