[libcxx-commits] [PATCH] D126122: Fix RUNPATH not accounting for LLVM_ENABLE_PER_TARGET_RUNTIME_DIR
David Tenty via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 6 11:08:22 PST 2023
daltenty requested changes to this revision.
daltenty added a comment.
This revision now requires changes to proceed.
This patch is failing in the libc++ precommit CI attached to this revision as the `-rpath` option is unsupported on AIX:
https://buildkite.com/llvm-project/libcxx-ci/builds/18515#01861582-a41c-42fc-abe0-07ba06ab071d
IIUC there should not be a need to insert this linker options manually as is happening here, CMake has specific variables for controlling the build and install rpaths:
https://cmake.org/cmake/help/v3.26/variable/CMAKE_BUILD_RPATH.html
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_RPATH.html
AFAIK these should generate the appropriate linker options automatically per-platform
(That said, relative `$ORIGIN` rpaths are not supported on some platforms like AIX, so this isn't going to work universally. But at least using the CMake features should make it generate the right flags and won't result in a linker failure)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126122/new/
https://reviews.llvm.org/D126122
More information about the libcxx-commits
mailing list