diff options
author | Tim Hammerquist <penryu@apple.com> | 2017-03-17 21:00:35 +0000 |
---|---|---|
committer | Tim Hammerquist <penryu@apple.com> | 2017-03-17 21:00:35 +0000 |
commit | f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0 (patch) | |
tree | e6d2103240a461139b014677df4303ef4ab12c08 /lldb/packages/Python/lldbsuite | |
parent | c70a8f2df1c5e1af7cedd4d35e931aa2279ab2df (diff) | |
download | bcm5719-llvm-f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0.tar.gz bcm5719-llvm-f73c6c7e84d7b12dfdf291bff4fc7e79c45da8b0.zip |
allow for specification of compiler/lldb executables basename
llvm-svn: 298123
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 2dc61f62835..aa0c2ff9334 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -278,6 +278,8 @@ def parseOptionsAndInitTestdirs(): if args.compiler: configuration.compiler = os.path.realpath(args.compiler) if not is_exe(configuration.compiler): + configuration.compiler = which(args.compiler) + if not is_exe(configuration.compiler): logging.error( '%s is not a valid compiler executable; aborting...', args.compiler) @@ -370,6 +372,8 @@ def parseOptionsAndInitTestdirs(): # lldb executable is passed explicitly lldbtest_config.lldbExec = os.path.realpath(args.executable) if not is_exe(lldbtest_config.lldbExec): + lldbtest_config.lldbExec = which(args.executable) + if not is_exe(lldbtest_config.lldbExec): logging.error( '%s is not a valid executable to test; aborting...', args.executable) |