From: Martin Storsjö Date: Sun, 22 Dec 2019 08:01:09 +0000 (+0200) Subject: [LLDB] Fix building without SWIG X-Git-Tag: llvmorg-11-init~1559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a3fab97468f9555a770707e23a4c424bfd696c2;p=platform%2Fupstream%2Fllvm.git [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. --- 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