forked from OSchip/llvm-project
[SWIG] Deprecate SWIG 1.x
The last swig 1.x release dates from 2009, now 10 years ago. Recently, I fixed an issue that prevented us from using swig 4 (r364974), which turned out to be not backward compatible with swig 1.x (r365718). This patch deprecates this (really old) version of swig and makes swig 2 the minimum supported version in LLDB . This should be fine for the build bots, which are all running swig 3 or later. Differential revision: https://reviews.llvm.org/D64782 llvm-svn: 366213
This commit is contained in:
parent
8ece3b6719
commit
d3941e6630
|
@ -14,6 +14,11 @@ if(LLDB_BUILD_FRAMEWORK)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(SWIG REQUIRED)
|
find_package(SWIG REQUIRED)
|
||||||
|
set(SWIG_MIN_VERSION "2.0.0")
|
||||||
|
if (${SWIG_VERSION} VERSION_LESS ${SWIG_MIN_VERSION})
|
||||||
|
message(FATAL_ERROR "LLDB requires swig ${SWIG_MIN_VERSION}, your version is ${SWIG_VERSION}.")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lldb.py
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lldb.py
|
||||||
|
|
Loading…
Reference in New Issue