From 9a3fab97468f9555a770707e23a4c424bfd696c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Sun, 22 Dec 2019 10:01:09 +0200 Subject: [PATCH] [LLDB] Fix building without SWIG Previously, SWIG was only a hard dependency if python bindings were enabled. Since bf03e17c570171c7a52117fe63ace89d58f328d5, scripts/CMakeLists.txt is included unconditionally, while that file adds the hard dependency on SWIG. Instead, only include that file if either python or lua bindings are enabled. --- lldb/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 39e12b2..ff3d8ae 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -52,7 +52,9 @@ if (LLDB_ENABLE_PYTHON) CACHE STRING "Path where Python modules are installed, relative to install prefix") endif () -add_subdirectory(scripts) +if (LLDB_ENABLE_PYTHON OR LLDB_ENABLE_LUA) + add_subdirectory(scripts) +endif () # We need the headers generated by instrinsics_gen before we can compile # any source file in LLDB as the imported Clang modules might include -- 2.7.4