aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/ToolChain.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-12 18:51:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-12 18:51:02 +0000
commitdff9f50a525a3fd9e4b9bc097f51b6c3a827e400 (patch)
tree3b37cbc732c7b1c9d6ac61ca30028ae912421d08 /tools/ccc/ccclib/ToolChain.py
parent1a0d31a3d7f14ddc6370ba912c778aece6c12cf0 (diff)
ccc: (Darwin) More argument translation for Darwin/Compile tool.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/ToolChain.py')
-rw-r--r--tools/ccc/ccclib/ToolChain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ccc/ccclib/ToolChain.py b/tools/ccc/ccclib/ToolChain.py
index 2447b67052..698b1bfecc 100644
--- a/tools/ccc/ccclib/ToolChain.py
+++ b/tools/ccc/ccclib/ToolChain.py
@@ -39,6 +39,10 @@ class Darwin_X86_ToolChain(ToolChain):
# FIXME: Implement proper search.
return '/usr/libexec/gcc/%s/%s' % (self.getToolChainDir(), name)
+ def getMacosxVersionMin(self):
+ major,minor,minorminor = self.darwinVersion
+ return '%d.%d.%d' % (10, major-4, minor)
+
def selectTool(self, action):
assert isinstance(action, Phases.JobAction)
return self.toolMap[action.phase.__class__]