aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/ToolChain.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-11 23:13:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-11 23:13:15 +0000
commit9c199a0b6d37d2320b349739ee1c054fc117eb74 (patch)
tree4d8ac1ee1151fb775005df2876a0fe106ab4c27d /tools/ccc/ccclib/ToolChain.py
parent0fe5a4f4f6a5e5c116d540e69f174172d3a3fcb4 (diff)
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
Diffstat (limited to 'tools/ccc/ccclib/ToolChain.py')
-rw-r--r--tools/ccc/ccclib/ToolChain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ccc/ccclib/ToolChain.py b/tools/ccc/ccclib/ToolChain.py
index 46146b5eae..e80bb089cf 100644
--- a/tools/ccc/ccclib/ToolChain.py
+++ b/tools/ccc/ccclib/ToolChain.py
@@ -14,15 +14,15 @@ class ToolChain(object):
some particular action."""
abstract
-class Darwin_ToolChain(ToolChain):
+class Darwin10_X86_ToolChain(ToolChain):
def __init__(self, driver):
- super(Darwin_ToolChain, self).__init__(driver)
+ super(Darwin10_X86_ToolChain, self).__init__(driver)
self.toolMap = {
Phases.PreprocessPhase : Tools.GCC_PreprocessTool(),
Phases.CompilePhase : Tools.GCC_CompileTool(),
Phases.PrecompilePhase : Tools.GCC_PrecompileTool(),
Phases.AssemblePhase : Tools.DarwinAssembleTool(),
- Phases.LinkPhase : Tools.Collect2Tool(),
+ Phases.LinkPhase : Tools.Darwin10_X86_LinkTool(),
Phases.LipoPhase : Tools.LipoTool(),
}