Revert "Revert "[cmake] [compiler-rt] Call llvm_setup_rpath() when adding shared...
authorPetr Hosek <phosek@google.com>
Tue, 22 Jun 2021 23:11:29 +0000 (16:11 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 22 Jun 2021 23:11:29 +0000 (16:11 -0700)
commit959dbd1761cddbe8c53509459dbc0463f86c1b50
tree6fe1b647f96b66e0e3898743c57cead9ee9860cc
parent6a40bb01f60c9d4adf24d8f25cccd8307f76538d
Revert "Revert "[cmake] [compiler-rt] Call llvm_setup_rpath() when adding shared libraries.""

This reverts commit 21c008d5a5b1e0c2ec3c1659cff961f4b0ccea2c since
it broke the build on macOS and Windows with the following error:

  The install of the clang_rt.<na,e> target requires changing an
  RPATH from the build tree, but this is not supported with the Ninja
  generator unless on an ELF-based platform.  The
  CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set to avoid this relinking
  step.
compiler-rt/cmake/Modules/AddCompilerRT.cmake