Recent commit https://github.com/llvm/llvm-project/commit/8f833f88ab78265a8e0ebb0d1522771d67c708a9 modified the installation rpath and did not set BUILD_WITH_INSTALL_RPATH correctly on AIX, which led to installation failures on AIX. This patch sets BUILD_WITH_INSTALL_RPATH on AIX to fix the installation failures.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, thanks
Context: the tool chain doesn't support modifying rpaths/libpaths for XCOFF on install at the moment, so this is required.
llvm/cmake/modules/AddLLVM.cmake | ||
---|---|---|
2357–2359 | nit: let's update the comment |
llvm/cmake/modules/AddLLVM.cmake | ||
---|---|---|
2357–2359 | Ah thanks for catching this David! Fixed. |
Ah, sorry, I solicited feedback on the AIX changes on the original review, but got none. You will also want to undo the split of the AIX rpaths I put in above, moving everything to _install_rpath instead.
Also, do you mind removing Windows from this list? I'm fairly certain that has no effect, as the logic above returns if not an Apple, Unix, or AIX platform, but I simply put it in because of a previous LLVM commit message for 959dbd1761c that reported this same error on Windows, likely erroneously.
Thanks for the feedback @buttaface !! Not a problem. The engineer pinged in the original patch is no longer working on AIX. The patch is updated.
nit: let's update the comment