[all-commits] [llvm/llvm-project] e7fe44: Remove `LIBC_INSTALL_PREFIX`
John Ericson via All-commits
all-commits at lists.llvm.org
Wed Jul 21 16:07:49 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7fe4433f822fc224b14c9988268f71aeb4d37f9
https://github.com/llvm/llvm-project/commit/e7fe4433f822fc224b14c9988268f71aeb4d37f9
Author: John Ericson <John.Ericson at Obsidian.Systems>
Date: 2021-07-21 (Wed, 21 Jul 2021)
Changed paths:
M libc/CMakeLists.txt
M libc/lib/CMakeLists.txt
Log Message:
-----------
Remove `LIBC_INSTALL_PREFIX`
This matches the decision made in D99697.
It also shouldn't reintroduce the issue fixed in D99636.
The variable was originally introduced in
b22f448c21e718a3b6219df89169f38d436189c6 but is not essential to that
change.
Once we finish adding `GnuInstallDirs` support in D100810 and D99484,
setting `CMAKE_INSTALL_LIBDIR` would also work to change the
installation directory (though for more than libc).
`GnuInstallDirs` support also brings up an issue which is avoided if
variables like `LIBC_INSTALL_PREFIX` don't exist. Because the
`GnuInstallDirs` variables can be absolute paths, it is a bit unclear
how the per-project prefixes would work: does the project-agnostic
role-specific variable (e.g. `CMAKE_INSTALL_LIBDIR`), or project-specfic
role-agnostic (e.g. `LIBC_INSTALL_PREFIX`) take priority? Each is more
specific than the other on one axis, but not the other.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D105740
More information about the All-commits
mailing list