llvm-project/llvm/cmake
Louis Dionne 5905e69934 [runtimes] Handle interface targets in runtimes distribution components
As reported in [1], cxx-headers is not a valid distribution target
because it is an interface target in CMake. This breaks the most
basic MultiDistributionExample of the runtimes build.

This patch handles interface targets by getting rid of the assumption
that all distribution components have a target associated to them. It
is valid for a distribution component to only have a `install-FOO`
target.

In the case where only `cxx-headers` is provided as a distribution
component, `ninja toolchain-distribution` will not build anything
after this patch, since there is effectively nothing to build for
the `cxx-headers` target. However, running `ninja install-toolchain-distribution`
will build everything, as expected.

[1]: https://discord.com/channels/636084430946959380/636732894974312448/1010013287464828968

Differential Revision: https://reviews.llvm.org/D132387
2022-08-23 08:55:58 -04:00
..
modules [runtimes] Handle interface targets in runtimes distribution components 2022-08-23 08:55:58 -04:00
platforms [cmake] Fix ms-compat version in WinMsvc.cmake 2022-08-09 11:13:49 +02:00
README
config-ix.cmake Remove llvm::is_trivially_copyable (NFC) 2022-08-21 10:39:19 -07:00
config.guess [cmake] Add LoongArch to config.guess 2022-08-01 15:05:34 +08:00
dummy.cpp
nsis_icon.ico
nsis_logo.bmp
unwind.h [ExecutionEngine] Check for libunwind before calling __register_frame 2021-08-15 13:35:53 +01:00

README

See docs/CMake.html for instructions on how to build LLVM with CMake.