diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-02-15 07:41:17 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-02-15 07:41:17 +0000 |
| commit | b302bd232407cb939b45b4aabb72d1ba24b37cb2 (patch) | |
| tree | 0bbd813e33365aae4c36efea5024120aaec7ea60 /lldb/utils | |
| parent | 8d6b60c14ceaa7cb05aa470d874450ed4083b173 (diff) | |
| download | bcm5719-llvm-b302bd232407cb939b45b4aabb72d1ba24b37cb2.tar.gz bcm5719-llvm-b302bd232407cb939b45b4aabb72d1ba24b37cb2.zip | |
Use sys.executable in lldb-dotest
Without that, dotest.py would be executed with the default python
interpreter, which may not be the same one that lldb is built with.
This still requires the user do know which python interpreter to use
when running lldb-dotest, but now he is at least able to choose it, if
he knows which one to use.
llvm-svn: 354105
Diffstat (limited to 'lldb/utils')
| -rwxr-xr-x | lldb/utils/lldb-dotest/lldb-dotest.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/utils/lldb-dotest/lldb-dotest.in b/lldb/utils/lldb-dotest/lldb-dotest.in index c6cd8cbe746..059be9384d4 100755 --- a/lldb/utils/lldb-dotest/lldb-dotest.in +++ b/lldb/utils/lldb-dotest/lldb-dotest.in @@ -9,7 +9,7 @@ if __name__ == '__main__': wrapper_args = sys.argv[1:] dotest_args = dotest_args_str.split(';') # Build dotest.py command. - cmd = [dotest_path, '-q'] + cmd = [sys.executable, dotest_path, '-q'] cmd.extend(dotest_args) cmd.extend(wrapper_args) # Invoke dotest.py and return exit code. |

