Skip to content

Commit 03a3e9a

Browse files
committed
[lldb] Account for static bindings in FindPythonAndSwig
1 parent 45bc525 commit 03a3e9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/cmake/modules/FindPythonAndSwig.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ if(Python3_LIBRARIES AND Python3_INCLUDE_DIRS AND Python3_EXECUTABLE AND SWIG_EX
3939
set(PYTHONANDSWIG_FOUND TRUE)
4040
else()
4141
find_package(SWIG 2.0)
42-
if (SWIG_FOUND)
42+
if (SWIG_FOUND OR LLDB_USE_STATIC_BINDINGS)
43+
if (LLDB_USE_STATIC_BINDINGS)
44+
set(SWIG_EXECUTABLE "/not/found")
45+
endif()
4346
FindPython3()
4447
else()
4548
message(STATUS "SWIG 2 or later is required for Python support in LLDB but could not be found")

0 commit comments

Comments
 (0)