summaryrefslogtreecommitdiffstats
path: root/clang/utils/CmpDriver
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-14 20:06:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-14 20:06:04 +0000
commit35926e10bdf9db07473243fdb8c2201f9b020a56 (patch)
tree889feb653f4e7a80e380f172470c3dfd3722b2f7 /clang/utils/CmpDriver
parentfec2f2950a5bda496c7aed859ed6fde2c2de24f1 (diff)
downloadbcm5719-llvm-35926e10bdf9db07473243fdb8c2201f9b020a56.tar.gz
bcm5719-llvm-35926e10bdf9db07473243fdb8c2201f9b020a56.zip
CmpDriver: Allow over-ride of drivers to compare through env variables
(DRIVER_[AB]). llvm-svn: 62242
Diffstat (limited to 'clang/utils/CmpDriver')
-rwxr-xr-xclang/utils/CmpDriver6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/utils/CmpDriver b/clang/utils/CmpDriver
index 137f60b9b2c..9301ed75a15 100755
--- a/clang/utils/CmpDriver
+++ b/clang/utils/CmpDriver
@@ -126,11 +126,11 @@ def captureDriverInfo(cmd, args):
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)
OpenPOWER on IntegriCloud