diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-14 20:06:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-14 20:06:04 +0000 |
commit | 35926e10bdf9db07473243fdb8c2201f9b020a56 (patch) | |
tree | 889feb653f4e7a80e380f172470c3dfd3722b2f7 /clang/utils/CmpDriver | |
parent | fec2f2950a5bda496c7aed859ed6fde2c2de24f1 (diff) | |
download | bcm5719-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-x | clang/utils/CmpDriver | 6 |
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) |