[Mlir-commits] [mlir] [mlir] Don't set RPATH for libMLIR (PR #121180)

Maksim Levental llvmlistbot at llvm.org
Sun Dec 29 13:28:52 PST 2024


makslevental wrote:

> You could probably also skip all that and just build with `CMAKE_INSTALL_RPATH=@loader_path`. (You might need to make that `CMAKE_INSTALL_RPATH='@`

that would override the paths for bin/* which of course will break them

> This is a pretty standard idiom for rpaths. For example, it allows you to use the same rpath regardless of whether you're creating an executable you install into bin or for a library you install into lib.

The question is very simple: why would set rpaths for libs at all when you could just leave them as `ORIGIN/loader_path` because they're all already in each other's `ORIGIN/loader_path`..........


https://github.com/llvm/llvm-project/pull/121180


More information about the Mlir-commits mailing list