summaryrefslogtreecommitdiff
path: root/lldb/scripts
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-01-07 21:53:33 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-01-07 21:57:32 -0800
commitfc6f15d4d2c4a051c8e31fe4de0bfaf9d3535f6e (patch)
tree0cb3ceb510ea1fb18df8eb131153fc66bc12b3a3 /lldb/scripts
parentadee6454b7ac8e7a489ec63e338e1d4a5705e2f1 (diff)
downloadllvm-fc6f15d4d2c4a051c8e31fe4de0bfaf9d3535f6e.tar.gz
[lldb/CMake] Only auto-enable Python when SWIG is found
As correctly pointed out by Martin on the mailing list, Python should only be auto-enabled if SWIG is found as well. This moves the logic of finding SWIG into FindPythonInterpAndLibs to make that possible. To make diagnosing easier I've included a status message to convey why Python support is disabled.
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/CMakeLists.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt
index 8fa4e5f78916..515c63293bc2 100644
--- a/lldb/scripts/CMakeLists.txt
+++ b/lldb/scripts/CMakeLists.txt
@@ -15,12 +15,6 @@ if(LLDB_BUILD_FRAMEWORK)
set(framework_arg --framework --target-platform Darwin)
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()
-
if(APPLE)
set(DARWIN_EXTRAS "-D__APPLE__")
else()
@@ -38,7 +32,6 @@ set(SWIG_COMMON_FLAGS
-outdir ${CMAKE_CURRENT_BINARY_DIR}
)
-
if (LLDB_ENABLE_PYTHON)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp