[all-commits] [llvm/llvm-project] 7c6420: [lldb/Test] Run dotest.py with the Python LLDB was...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed May 6 14:58:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c6420e43178b0c03618f445fd008606a8b2c95e
      https://github.com/llvm/llvm-project/commit/7c6420e43178b0c03618f445fd008606a8b2c95e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-06 (Wed, 06 May 2020)

  Changed paths:
    M lldb/test/API/lldbtest.py

  Log Message:
  -----------
  [lldb/Test] Run dotest.py with the Python LLDB was built with.

The Python used to run lit can be different from the Python LLDB was
build with. One scenario where this happens is when LLVM can find the
Python 3 interpreter, but not the Python 3 libraries, in which case LLDB
build and links against Python 3. Without this change, you end up with
an ModuleNotFoundError because of the mismatch.

Instead of looking at the Python interpreter that's used to run lit,
lldbtest should use the interpreter that matches the Python version LLDB
was build against.

Differential revision: https://reviews.llvm.org/D79519




More information about the All-commits mailing list