File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ add_optional_dependency(LLDB_ENABLE_FBSDVMCORE "Enable libfbsdvmcore support in
6868option (LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON )
6969option (LLDB_BUILD_FRAMEWORK "Build LLDB.framework (Darwin only)" OFF )
7070option (LLDB_ENABLE_PROTOCOL_SERVERS "Enable protocol servers (e.g. MCP) in LLDB" ON )
71- option (LLDB_ENABLE_PYTHON_LIMITED_API "Force LLDB to only use the Python Limited API (requires SWIG 4.2 or later)" OFF )
7271option (LLDB_NO_INSTALL_DEFAULT_RPATH "Disable default RPATH settings in binaries" OFF )
7372option (LLDB_USE_SYSTEM_DEBUGSERVER "Use the system's debugserver for testing (Darwin only)." OFF )
7473option (LLDB_SKIP_STRIP "Whether to skip stripping of binaries when installing lldb." OFF )
@@ -173,6 +172,14 @@ if (LLDB_ENABLE_PYTHON)
173172 "Embed PYTHONHOME in the binary. If set to OFF, PYTHONHOME environment variable will be used to to locate Python."
174173 ${default_embed_python_home} )
175174
175+ if (SWIG_VERSION VERSION_GREATER_EQUAL "4.2" )
176+ set (default_enable_python_limited_api ON )
177+ else ()
178+ set (default_enable_python_limited_api OFF )
179+ endif ()
180+ option (LLDB_ENABLE_PYTHON_LIMITED_API "Force LLDB to only use the Python Limited API (requires SWIG 4.2 or later)"
181+ ${default_enable_python_limited_api} )
182+
176183 include_directories (${Python3_INCLUDE_DIRS} )
177184 if (LLDB_EMBED_PYTHON_HOME)
178185 get_filename_component (PYTHON_HOME "${Python3_EXECUTABLE} " DIRECTORY )
You can’t perform that action at this time.
0 commit comments