[Lldb-commits] [lldb] b6888f0 - [lldb] Make DYNAMIC_SCRIPTINTERPRETERS the default on Darwin & FreeBSD. (#204015)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 15 16:56:58 PDT 2026
Author: Jonas Devlieghere
Date: 2026-06-15T16:56:53-07:00
New Revision: b6888f0b0873eaff7ce148c10960c24d50ef50df
URL: https://github.com/llvm/llvm-project/commit/b6888f0b0873eaff7ce148c10960c24d50ef50df
DIFF: https://github.com/llvm/llvm-project/commit/b6888f0b0873eaff7ce148c10960c24d50ef50df.diff
LOG: [lldb] Make DYNAMIC_SCRIPTINTERPRETERS the default on Darwin & FreeBSD. (#204015)
Make `LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS` the default on Darwin and
FreeBSD. We can opt-in more platforms later, or even make this the
global default (except Windows, which doesn't need it).
Fixes #183791
Added:
Modified:
lldb/cmake/modules/LLDBConfig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 2487770d4e206..660cd00a64414 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -68,7 +68,6 @@ add_optional_dependency(LLDB_ENABLE_TREESITTER "Enable Tree-sitter syntax highli
option(LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON)
option(LLDB_BUILD_FRAMEWORK "Build LLDB.framework (Darwin only)" OFF)
option(LLDB_ENABLE_PROTOCOL_SERVERS "Enable protocol servers (e.g. MCP) in LLDB" ON)
-option(LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS "Build the script interpreter plugins as shared libraries" OFF)
option(LLDB_NO_INSTALL_DEFAULT_RPATH "Disable default RPATH settings in binaries" OFF)
option(LLDB_USE_SYSTEM_DEBUGSERVER "Use the system's debugserver for testing (Darwin only)." OFF)
option(LLDB_SKIP_STRIP "Whether to skip stripping of binaries when installing lldb." OFF)
@@ -191,6 +190,13 @@ else()
set(LLDB_ENABLE_MTE OFF)
endif()
+if (CMAKE_SYSTEM_NAME MATCHES "Darwin|FreeBSD")
+ set(default_enable_dynamic_scriptinterpreters ON)
+else()
+ set(default_enable_dynamic_scriptinterpreters OFF)
+endif()
+option(LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS "Build the script interpreter plugins as shared libraries" ${default_enable_dynamic_scriptinterpreters})
+
if (LLDB_ENABLE_PYTHON)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(default_embed_python_home ON)
More information about the lldb-commits
mailing list