[all-commits] [llvm/llvm-project] e538c6: [LLDB] Ensure LLDB symbols are exported in LLDB_EX...

Walter Erquinigo via All-commits all-commits at lists.llvm.org
Mon Apr 3 13:42:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e538c6fc3048e1fb1a58da879275d6804186856e
      https://github.com/llvm/llvm-project/commit/e538c6fc3048e1fb1a58da879275d6804186856e
  Author: walter erquinigo <walter at modular.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

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

  Log Message:
  -----------
  [LLDB] Ensure LLDB symbols are exported in LLDB_EXPORT_ALL_SYMBOLS is provided.

If we want to export all lldb symbols (i.e LLDB_EXPORT_ALL_SYMBOLS=ON), we need to use default visibility for all LLDB libraries even if a global CMAKE_CXX_VISIBILITY_PRESET=hidden is present. In fact, there are cases in which a global llvm configuration wants CMAKE_CXX_VISIBILITY_PRESET as hidden but simultaneously LLDB_EXPORT_ALL_SYMBOLS=ON is also needed to be able to develop out-of-tree lldb plugins.

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




More information about the All-commits mailing list