[all-commits] [llvm/llvm-project] 75966e: [lldb] Get rid of helper CMake variables for Python

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Aug 17 08:49:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 75966ee241a2f1b7712caa1bbe66560347b23359
      https://github.com/llvm/llvm-project/commit/75966ee241a2f1b7712caa1bbe66560347b23359
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-08-17 (Mon, 17 Aug 2020)

  Changed paths:
    M lldb/CMakeLists.txt
    M lldb/bindings/python/CMakeLists.txt
    A lldb/cmake/modules/FindPythonAndSwig.cmake
    R lldb/cmake/modules/FindPythonInterpAndLibs.cmake
    M lldb/cmake/modules/LLDBConfig.cmake
    M lldb/source/API/CMakeLists.txt
    M lldb/source/Plugins/ObjectFile/CMakeLists.txt
    M lldb/source/Plugins/ScriptInterpreter/None/CMakeLists.txt
    M lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
    M lldb/test/API/CMakeLists.txt
    M lldb/test/API/lit.site.cfg.py.in
    M lldb/test/CMakeLists.txt
    M lldb/test/Shell/lit.site.cfg.py.in
    M lldb/test/Unit/lit.site.cfg.py.in
    M lldb/test/lit.site.cfg.py.in
    M lldb/tools/intel-features/CMakeLists.txt
    M lldb/tools/lldb-test/CMakeLists.txt
    M lldb/unittests/API/CMakeLists.txt
    M lldb/unittests/Process/Linux/CMakeLists.txt
    M lldb/unittests/ScriptInterpreter/Lua/CMakeLists.txt
    M lldb/unittests/ScriptInterpreter/Python/CMakeLists.txt
    M lldb/utils/lldb-dotest/lldb-dotest.in

  Log Message:
  -----------
  [lldb] Get rid of helper CMake variables for Python

This patch is a big sed to rename the following variables:

  s/PYTHON_LIBRARIES/Python3_LIBRARIES/g
  s/PYTHON_INCLUDE_DIRS/Python3_INCLUDE_DIRS/g
  s/PYTHON_EXECUTABLE/Python3_EXECUTABLE/g
  s/PYTHON_RPATH/Python3_RPATH/g

I've also renamed the CMake module to better express its purpose and for
consistency with FindLuaAndSwig.

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




More information about the All-commits mailing list