File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ add_optional_dependency(LLDB_ENABLE_FBSDVMCORE "Enable libfbsdvmcore support in
68
68
option (LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON )
69
69
option (LLDB_BUILD_FRAMEWORK "Build LLDB.framework (Darwin only)" OFF )
70
70
option (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 )
71
72
option (LLDB_NO_INSTALL_DEFAULT_RPATH "Disable default RPATH settings in binaries" OFF )
72
73
option (LLDB_USE_SYSTEM_DEBUGSERVER "Use the system's debugserver for testing (Darwin only)." OFF )
73
74
option (LLDB_SKIP_STRIP "Whether to skip stripping of binaries when installing lldb." OFF )
@@ -172,14 +173,6 @@ if (LLDB_ENABLE_PYTHON)
172
173
"Embed PYTHONHOME in the binary. If set to OFF, PYTHONHOME environment variable will be used to to locate Python."
173
174
${default_embed_python_home} )
174
175
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
-
183
176
include_directories (${Python3_INCLUDE_DIRS} )
184
177
if (LLDB_EMBED_PYTHON_HOME )
185
178
get_filename_component (PYTHON_HOME "${Python3_EXECUTABLE} " DIRECTORY )
You can’t perform that action at this time.
0 commit comments