llvm-project/lldb/tools
Stefan Granitz 5d005a856d [CMake] Revised RPATH handling
Summary:
If we build LLDB.framework, dependant tools need appropriate RPATHs in both locations, the build-tree (for testing) and the install-tree (for deployment). Luckily, CMake can handle it for us: https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling.

* In the build-tree, tools use the absolute path to the framework's actual output location.
* In the install-tree, tools get a list of RPATHs to look for the framework when deployed.

`LLDB_FRAMEWORK_INSTALL_DIR` is added to the `CMAKE_INSTALL_PREFIX` to change the relative location of LLDB.framework in the install-tree.
If it is not empty, it will be added as an additional RPATH to all dependant tools (so they are functional in the install-tree).
If it is empty, LLDB.framework goes to the root and tools will not be functional in the directory structure of the LLVM install-tree.
For historical reasons `LLDB_FRAMEWORK_INSTALL_DIR` defaults to "Library/Frameworks".

Reviewers: xiaobai, JDevlieghere, aprantl, clayborg

Reviewed By: JDevlieghere

Subscribers: ki.stfu, mgorny, lldb-commits, #lldb

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

llvm-svn: 350392
2019-01-04 12:46:57 +00:00
..
argdumper [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
compact-unwind
darwin-debug [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
darwin-threads the thread id is easier to read in base16. 2018-03-06 23:33:02 +00:00
debugserver [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
driver [CMake] Revised RPATH handling 2019-01-04 12:46:57 +00:00
install-headers
intel-features Remove header grouping comments. 2018-11-11 23:17:06 +00:00
lldb-mi [CMake] Revised RPATH handling 2019-01-04 12:46:57 +00:00
lldb-perf
lldb-server [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
lldb-test lldb-test ir-memory-map: Use IntervalMap::contains 2018-12-27 09:32:04 +00:00
lldb-vscode [CMake] Revised RPATH handling 2019-01-04 12:46:57 +00:00
CMakeLists.txt [cmake] Add option to skip building lldb-server 2018-08-23 18:05:45 +00:00