[all-commits] [llvm/llvm-project] c13574: [lldb/CMake] Separate CMake code for Lua and Pytho...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Aug 11 09:04:41 PDT 2020


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

  Changed paths:
    M lldb/CMakeLists.txt
    M lldb/bindings/CMakeLists.txt
    R lldb/bindings/lua.swig
    A lldb/bindings/lua/CMakeLists.txt
    A lldb/bindings/lua/lua.swig
    R lldb/bindings/python.swig
    A lldb/bindings/python/CMakeLists.txt
    A lldb/bindings/python/python.swig
    M lldb/docs/CMakeLists.txt
    M lldb/source/API/CMakeLists.txt

  Log Message:
  -----------
  [lldb/CMake] Separate CMake code for Lua and Python (NFC)

Separate the CMake logic for Lua and Python to clearly distinguish
between code specific to either scripting language and the code shared
by both.

What this patch does is:

 - Move Python specific code into the bindings/python subdirectory.
 - Move the Lua specific code into the bindings/lua subdirectory.
 - Add the _python suffix to Python specific functions/targets.
 - Fix a dependency issue that would check the binding instead of
   whether the scripting language is enabled.

Note that this patch also changes where the bindings are generated,
which might affect downstream projects that check them in.

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




More information about the All-commits mailing list