diff options
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index e631f55c28..5c978e2638 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -156,6 +156,20 @@ class Driver(object): self.cccHostSystem,argv = argv[0],argv[1:] elif opt == 'host-release': self.cccHostRelease,argv = argv[0],argv[1:] + elif opt == 'host-triple': + # This is a complete hack, but only exists for testing + # compatibility with the new driver. We will be six + # feet under soon enough. + triple,argv = argv[0],argv[1:] + self.cccHostMachine,_,self.cccHostSystem = triple.split('-', 2) + if self.cccHostSystem.startswith('darwin'): + self.cccHostSystem = 'darwin' + self.cccHostRelease = '10.5.0' + if self.cccHostMachine == 'x86_64': + self.cccHostMachine = 'i386' + self.cccHostBits = '64' + elif self.cccHostMachine == 'i386': + self.cccHostBits = '32' else: raise Arguments.InvalidArgumentsError("invalid option: %r" % fullOpt) |