This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Move create_relative_symlink function up in CMake hierarchy
ClosedPublic

Authored by dim on Nov 23 2021, 11:58 AM.

Details

Summary

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.

Diff Detail

Event Timeline

dim created this revision.Nov 23 2021, 11:58 AM
dim requested review of this revision.Nov 23 2021, 11:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2021, 11:58 AM
labath accepted this revision.Nov 23 2021, 12:39 PM
This revision is now accepted and ready to land.Nov 23 2021, 12:39 PM