Invert dependency between lldb-framework and lldb-suite
authorAlex Langford <apl@fb.com>
Tue, 17 Jul 2018 18:28:51 +0000 (18:28 +0000)
committerAlex Langford <apl@fb.com>
Tue, 17 Jul 2018 18:28:51 +0000 (18:28 +0000)
commit97ba3b64ddb63b216561b44ea62c0ac8c413feb7
tree6d4512f4a1015556e5c352216cba4f741b3df3b1
parent9ece8182914f1625d7e02a5d5a8c4ef2766b894a
Invert dependency between lldb-framework and lldb-suite

Summary:
Currently, if you build lldb-framework the entire framework doesn't
actually build. In order to build the entire framework, you need to actually
build lldb-suite. This abstraction doesn't feel quite right because
lldb-framework truly does depend on lldb-suite (liblldb + related tools).

In this change I want to invert their dependency. This will mean that lldb and
finish_swig will depend on lldb-framework in a framework build, and lldb-suite
otherwise. Instead of adding conditional logic everywhere to handle this, I
introduce LLDB_SUITE_TARGET to handle it.

Differential Revision: https://reviews.llvm.org/D49406

llvm-svn: 337311
lldb/CMakeLists.txt
lldb/cmake/modules/LLDBFramework.cmake
lldb/source/API/CMakeLists.txt
lldb/tools/driver/CMakeLists.txt