aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Driver.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-12 09:23:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-12 09:23:15 +0000
commit6325fcf532c0af1f3a84d81104bd74bdc261e5b5 (patch)
tree5c40969dd358837ceaa03e9aa307621ca5a245f4 /tools/ccc/ccclib/Driver.py
parent3235fdb001a578448defe64f9ca8bfac1bb75aeb (diff)
ccc: (Darwin) Start implementing argument translation for
Darwin/Compile tool. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62085 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r--tools/ccc/ccclib/Driver.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 23bc10cb4e..bea7232d3a 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -535,6 +535,7 @@ class Driver(object):
hasSaveTemps = (args.getLastArg(self.parser.saveTempsOption) or
args.getLastArg(self.parser.saveTempsOption2))
hasNoIntegratedCPP = args.getLastArg(self.parser.noIntegratedCPPOption)
+ hasTraditionalCPP = args.getLastArg(self.parser.traditionalCPPOption)
hasPipe = args.getLastArg(self.parser.pipeOption)
# FIXME: forward will die, this isn't really how things are
@@ -566,8 +567,12 @@ class Driver(object):
# about these being unused are likely to be noise anyway.
if hasSaveTemps:
self.claim(hasSaveTemps)
- if hasNoIntegratedCPP:
+
+ if hasTraditionalCPP:
+ self.claim(hasTraditionalCPP)
+ elif hasNoIntegratedCPP:
self.claim(hasNoIntegratedCPP)
+
class InputInfo:
def __init__(self, source, type, baseInput):
@@ -615,6 +620,7 @@ class Driver(object):
useIntegratedCPP = False
inputList = phase.inputs
if (not hasNoIntegratedCPP and
+ not hasTraditionalCPP and
not hasSaveTemps and
tool.hasIntegratedCPP()):
if (len(phase.inputs) == 1 and