llvm-project/clang/utils
John Ericson efeb501970 [cmake] Use `GNUInstallDirs` to support custom installation dirs.
This is the original patch in my GNUInstallDirs series, now last to merge as the final piece!

It arose as a new draft of D28234. I initially did the unorthodox thing of pushing to that when I wasn't the original author, but since I ended up

 - Using `GNUInstallDirs`, rather than mimicking it, as the original author was hesitant to do but others requested.

 - Converting all the packages, not just LLVM, effecting many more projects than LLVM itself.

I figured it was time to make a new revision.

I have used this patch series (and many back-ports) as the basis of https://github.com/NixOS/nixpkgs/pull/111487 for my distro (NixOS), which was merged last spring (2021). It looked like people were generally on board in D28234, but I make note of this here in case extra motivation is useful.

---

As pointed out in the original issue, a central tension is that LLVM already has some partial support for these sorts of things. Variables like `COMPILER_RT_INSTALL_PATH` have already been dealt with. Variables like `LLVM_LIBDIR_SUFFIX` however, will require further work, so that we may use `CMAKE_INSTALL_LIBDIR`.

These remaining items will be addressed in further patches. What is here is now rote and so we should get it out of the way before dealing more intricately with the remainder.

Reviewed By: #libunwind, #libc, #libc_abi, compnerd

Differential Revision: https://reviews.llvm.org/D99484
2022-01-15 01:08:35 +00:00
..
ABITest
CIndex
ClangVisualizers
TableGen [clang] Remove redundant member initialization (NFC) 2022-01-12 22:12:01 -08:00
TestUtils Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
VtableTest
analyzer [analyzer] Allow cmake options to be passed to satest container 2021-10-25 11:15:40 +02:00
check_cfc [NFC][clang]Inclusive language: remove remaining uses of sanity 2021-11-24 14:20:13 -05:00
hmaptool [cmake] Use `GNUInstallDirs` to support custom installation dirs. 2022-01-15 01:08:35 +00:00
perf-training Reapply "NFC: utils/perf-training: Python 3 compatibility for lit.cfg" 2020-05-05 15:56:23 -07:00
valgrind
CaptureCmd
ClangDataFormat.py
CmpDriver
FindSpecRefs
FuzzTest
bash-autocomplete.sh
builtin-defines.c
clangdiag.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
convert_arm_neon.py [NFC][clang] Inclusive language: replace master with main in convert_arm_neon.py 2021-11-16 10:11:06 -06:00
creduce-clang-crash.py [Utils] Add an option to specify number of cores to use in creduce-clang-crash.py 2021-02-22 12:43:09 -08:00
find-unused-diagnostics.sh
make-ast-dump-check.sh [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils. 2021-09-23 21:16:43 +05:30
modfuzz.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
module-deps-to-rsp.py Reapply "[clang][deps] Support inferred modules" 2021-05-20 12:41:52 +02:00
token-delta.py