[Lldb-commits] [lldb] r354105 - Use sys.executable in lldb-dotest
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 18 17:10:37 PST 2019
Great!
On Thu, Feb 14, 2019 at 11:40 PM Pavel Labath via lldb-commits <
lldb-commits at lists.llvm.org> wrote:
> 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.
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190218/a82f9ef4/attachment.html>
More information about the lldb-commits
mailing list