[lldb] Bump the required SWIG version to 3

Bump the required SWIG version to 3. If my memory serves me well we last
bumped the required SWIG version to 2 for Python 3. At that time SWIG 3
had already been around for a while so everyone I know was already using
that.

It appears that SWIG 3 is the only version that officially supports
C++11 which we're using in the typemap. SWIG 3 was released in 2014 so I
think it's reasonable to make that the minimum required version.

https://bugs.llvm.org/show_bug.cgi?id=48685

Differential revision: https://reviews.llvm.org/D94244
This commit is contained in:
Jonas Devlieghere 2021-01-08 08:46:19 -08:00
parent 466df1718e
commit cb6d53ccdc
3 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND SWIG_EXECUTABLE)
set(LUAANDSWIG_FOUND TRUE)
else()
find_package(SWIG 2.0)
find_package(SWIG 3.0)
if (SWIG_FOUND)
find_package(Lua 5.3)
if(LUA_FOUND AND SWIG_FOUND)
@ -17,7 +17,7 @@ else()
SWIG_EXECUTABLE)
endif()
else()
message(STATUS "SWIG 2 or later is required for Lua support in LLDB but could not be found")
message(STATUS "SWIG 3 or later is required for Lua support in LLDB but could not be found")
endif()
include(FindPackageHandleStandardArgs)

View File

@ -38,11 +38,11 @@ endmacro()
if(Python3_LIBRARIES AND Python3_INCLUDE_DIRS AND Python3_EXECUTABLE AND SWIG_EXECUTABLE)
set(PYTHONANDSWIG_FOUND TRUE)
else()
find_package(SWIG 2.0)
find_package(SWIG 3.0)
if (SWIG_FOUND)
FindPython3()
else()
message(STATUS "SWIG 2 or later is required for Python support in LLDB but could not be found")
message(STATUS "SWIG 3 or later is required for Python support in LLDB but could not be found")
endif()
get_property(MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

View File

@ -34,7 +34,7 @@ If you want to run the test suite, you'll need to build LLDB with Python
scripting support.
* `Python <http://www.python.org/>`_
* `SWIG <http://swig.org/>`_ 2 or later.
* `SWIG <http://swig.org/>`_ 3 or later.
Optional Dependencies
*********************