From d3941e663066eb120ea8b79983122897d503d1c2 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 16 Jul 2019 15:14:01 +0000 Subject: [PATCH] [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 --- lldb/scripts/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt index 4398527..1a0ea96 100644 --- a/lldb/scripts/CMakeLists.txt +++ b/lldb/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 -- 2.7.4