[cmake] Add support for multiple distributions
authorShoaib Meenai <smeenai@fb.com>
Thu, 1 Oct 2020 21:35:28 +0000 (14:35 -0700)
committerShoaib Meenai <smeenai@fb.com>
Wed, 12 May 2021 18:13:18 +0000 (11:13 -0700)
commit56f7e5a822b43578e086c40d063af2a2c0d214ee
treeaf5df76c8eadb6d0eedce0fe1cf258c35f8521ad
parent7b57517507929a5d23fde4776aeb792ee0e9c293
[cmake] Add support for multiple distributions

LLVM's build system contains support for configuring a distribution, but
it can often be useful to be able to configure multiple distributions
(e.g. if you want separate distributions for the tools and the
libraries). Add this support to the build system, along with
documentation and usage examples.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D89177
19 files changed:
clang/cmake/caches/MultiDistributionExample.cmake [new file with mode: 0644]
clang/cmake/modules/AddClang.cmake
clang/cmake/modules/CMakeLists.txt
clang/cmake/modules/ClangConfig.cmake.in
flang/cmake/modules/AddFlang.cmake
flang/cmake/modules/CMakeLists.txt
flang/cmake/modules/FlangConfig.cmake.in
lld/cmake/modules/AddLLD.cmake
lld/cmake/modules/CMakeLists.txt
lld/cmake/modules/LLDConfig.cmake.in
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/modules/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/cmake/modules/LLVMDistributionSupport.cmake
llvm/docs/BuildingADistribution.rst
llvm/docs/ReleaseNotes.rst
mlir/cmake/modules/AddMLIR.cmake
mlir/cmake/modules/CMakeLists.txt
mlir/cmake/modules/MLIRConfig.cmake.in