summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-16 15:14:01 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-16 15:14:01 +0000
commitcdcce4f0941f4888a40f2ca4dee97169a8ce77fe (patch)
treeb6643ce6aea0aa40f49265258a41f284715f6f09
parentb5b72e08ac6907c9e20e7bc000c7ab009a409b41 (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@366213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--scripts/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 439852793..1a0ea96ff 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -14,6 +14,11 @@ if(LLDB_BUILD_FRAMEWORK)
endif()
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(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lldb.py