[PATCH] D93177: [CMake] Don't enable BUILD_WITH_INSTALL_RPATH when using custom build rpath

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 8 06:15:32 PST 2021


hubert.reinterpretcast added a comment.

We're seeing:

  CMake Error at cmake/modules/AddLLVM.cmake:861 (add_executable):
    The install of the verify-uselistorder 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.
  Call Stack (most recent call first):
    cmake/modules/AddLLVM.cmake:1209 (add_llvm_executable)
    tools/verify-uselistorder/CMakeLists.txt:10 (add_llvm_tool)

Is it the general belief that the status quo before this patch is equivalent to setting `CMAKE_BUILD_WITH_INSTALL_RPATH` to `ON`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93177/new/

https://reviews.llvm.org/D93177



More information about the llvm-commits mailing list