[all-commits] [llvm/llvm-project] 2c0afa: [lldb/CMake] Add LLDB_PYTHON_VERSION to use Python...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jun 9 14:12:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c0afacada0d1488bc88b1211203ea4fdb0a23e8
      https://github.com/llvm/llvm-project/commit/2c0afacada0d1488bc88b1211203ea4fdb0a23e8
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M lldb/cmake/modules/FindPythonInterpAndLibs.cmake

  Log Message:
  -----------
  [lldb/CMake] Add LLDB_PYTHON_VERSION to use Python 2 with CMake > 3.12

In addition to having the default fallback from Python 3 to Python 2, it
should also be possible to build against Python 2 explicitly. This patch
makes that possible by setting LLDB_PYTHON_VERSION. The variable only
has effect with CMake 3.12 or later.

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




More information about the All-commits mailing list