[cfe-commits] r62242 - /cfe/trunk/utils/CmpDriver
Daniel Dunbar
daniel at zuster.org
Wed Jan 14 12:06:05 PST 2009
Author: ddunbar
Date: Wed Jan 14 14:06:04 2009
New Revision: 62242
URL: http://llvm.org/viewvc/llvm-project?rev=62242&view=rev
Log:
CmpDriver: Allow over-ride of drivers to compare through env variables
(DRIVER_[AB]).
Modified:
cfe/trunk/utils/CmpDriver
Modified: cfe/trunk/utils/CmpDriver
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/CmpDriver?rev=62242&r1=62241&r2=62242&view=diff
==============================================================================
--- cfe/trunk/utils/CmpDriver (original)
+++ cfe/trunk/utils/CmpDriver Wed Jan 14 14:06:04 2009
@@ -126,11 +126,11 @@
return CompileInfo(out,err,res)
def main():
- import sys
+ import os, sys
args = sys.argv[1:]
- driverA = 'gcc'
- driverB = 'xcc'
+ driverA = os.getenv('DRIVER_A') or 'gcc'
+ driverB = os.getenv('DRIVER_B') or 'xcc'
infoA = captureDriverInfo(driverA, args)
infoB = captureDriverInfo(driverB, args)
More information about the cfe-commits
mailing list