llvm-project/lldb
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
..
cmake [CMake] Revised RPATH handling 2019-01-04 12:46:57 +00:00
docs Add a description of the similar packets defined in the 2018-12-16 18:44:54 +00:00
examples Fix lldb's macosx/heap.py cstr command. 2018-12-17 18:21:51 +00:00
include/lldb RangeMap.h: merge RangeDataArray and RangeDataVector 2019-01-04 07:14:17 +00:00
lit [NativePDB] Implement ParseDeclsForContext. 2019-01-02 18:33:54 +00:00
lldb.xcodeproj Remove Range.* from Xcode project 2019-01-02 22:23:51 +00:00
lldb.xcworkspace Fix a typo in the gtest build target for Debug configuration. 2018-04-10 17:49:56 +00:00
packages/Python/lldbsuite [lldb] Fix ObjCExceptionRecognizedStackFrame to populate the list of recognized arguments 2019-01-04 00:25:08 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [lldb] Add a "display-recognized-arguments" target setting to show recognized arguments by default 2018-12-20 23:38:19 +00:00
source [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
test [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
third_party/Python/module [dotest] Consider unexpected passes as failures. 2018-12-20 20:44:23 +00:00
tools [CMake] Revised RPATH handling 2019-01-04 12:46:57 +00:00
unittests [CMake] Streamline code signing for debugserver #2 2019-01-04 12:46:30 +00:00
utils Fix typos. 2018-10-04 22:33:39 +00:00
www Document the DBGSourcePathRemapping dictionary that may be 2018-12-17 22:25:54 +00:00
.arcconfig
.clang-format
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt Changed builld-llvm.py to use .json files 2017-02-23 02:21:34 +00:00
LICENSE.TXT
use_lldb_suite_root.py