[all-commits] [llvm/llvm-project] 0ebc1f: [CMake] Don't enable BUILD_WITH_INSTALL_RPATH when...
Raul Tambre via All-commits
all-commits at lists.llvm.org
Thu Jan 7 22:31:28 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ebc1fb29f278db0665423f15c53e6ee9601dddb
https://github.com/llvm/llvm-project/commit/0ebc1fb29f278db0665423f15c53e6ee9601dddb
Author: Raul Tambre <raul at tambre.ee>
Date: 2021-01-08 (Fri, 08 Jan 2021)
Changed paths:
M llvm/cmake/modules/AddLLVM.cmake
Log Message:
-----------
[CMake] Don't enable BUILD_WITH_INSTALL_RPATH when using custom build rpath
When `BUILD_WITH_INSTALL_RPATH` is enabled it prevents using a custom rpath only
for the build tree as the install rpath will be used. This makes it impossible to run a
runtimes build when compiling with Clang and wanting the installed rpath to be
empty (i.e. `-DCMAKE_BUILD_RPATH="<some path>" -DCMAKE_SKIP_INSTALL_RPATH=ON`).
Disable `BUILD_WITH_INSTALL_RPATH` when `CMAKE_BUILD_RPATH` is non-empty to
allow for such build scenarios.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D93177
More information about the All-commits
mailing list