ccc: Add dummy Clang/Compile tool and use on Darwin/X86 for C files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62204 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 429142c..5d73a98 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -29,6 +29,11 @@
def __init__(self):
self.hostInfo = None
self.parser = Arguments.OptionParser()
+ self.cccHostBits = self.cccHostMachine = None
+ self.cccHostSystem = self.cccHostRelease = None
+ self.cccCXX = False
+ self.cccClang = False
+ self.cccFallback = False
# Host queries which can be forcibly over-riden by the user for
# testing purposes.
@@ -80,8 +85,6 @@
# FIXME: How to handle override of host? ccc specific options?
# Abuse -b?
- self.cccHostBits = self.cccHostMachine = None
- self.cccHostSystem = self.cccHostRelease = None
while argv and argv[0].startswith('-ccc-'):
opt,argv = argv[0][5:],argv[1:]
@@ -89,6 +92,12 @@
cccPrintOptions = True
elif opt == 'print-phases':
cccPrintPhases = True
+ elif opt == 'cxx':
+ self.cccCXX = True
+ elif opt == 'clang':
+ self.cccClang = True
+ elif opt == 'fallback':
+ self.cccFallback = True
elif opt == 'host-bits':
self.cccHostBits,argv = argv[0],argv[1:]
elif opt == 'host-machine':