[Lldb-commits] [lldb] r354105 - Use sys.executable in lldb-dotest

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 14 23:41:17 PST 2019


Author: labath
Date: Thu Feb 14 23:41:17 2019
New Revision: 354105

URL: http://llvm.org/viewvc/llvm-project?rev=354105&view=rev
Log:
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.

Modified:
    lldb/trunk/utils/lldb-dotest/lldb-dotest.in

Modified: lldb/trunk/utils/lldb-dotest/lldb-dotest.in
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/lldb-dotest/lldb-dotest.in?rev=354105&r1=354104&r2=354105&view=diff
==============================================================================
--- lldb/trunk/utils/lldb-dotest/lldb-dotest.in (original)
+++ lldb/trunk/utils/lldb-dotest/lldb-dotest.in Thu Feb 14 23:41:17 2019
@@ -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.




More information about the lldb-commits mailing list