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.
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