[all-commits] [llvm/llvm-project] b5a927: [lldb] Move create_relative_symlink function up in...

Dimitry Andric via All-commits all-commits at lists.llvm.org
Tue Nov 23 13:00:11 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5a927b972b2c07b4597e93ed0b57803bfc0e6ae
      https://github.com/llvm/llvm-project/commit/b5a927b972b2c07b4597e93ed0b57803bfc0e6ae
  Author: Dimitry Andric <dimitry at andric.com>
  Date:   2021-11-23 (Tue, 23 Nov 2021)

  Changed paths:
    M lldb/bindings/CMakeLists.txt
    M lldb/bindings/python/CMakeLists.txt

  Log Message:
  -----------
  [lldb] Move create_relative_symlink function up in CMake hierarchy

Configuring lldb with `LLDB_ENABLE_PYTHON=OFF` and `LLDB_ENABLE_LUA=ON` results in a CMake error:

    CMake Error at lldb/bindings/lua/CMakeLists.txt:47 (create_relative_symlink):
      Unknown CMake command "create_relative_symlink".
    Call Stack (most recent call first):
      lldb/CMakeLists.txt:117 (finish_swig_lua)

This is because the CMake function `create_relative_symlink` only exists in `lldb/bindings/python/CMakeLists.txt`, and not in `lldb/bindings/lua/CMakeLists.txt`.

Move the function to `lldb/bindings/CMakeLists.txt`, so it is available for all language bindings.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D114465




More information about the All-commits mailing list