diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index 321bae48594cf..5a3c33f90c711 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -836,6 +836,12 @@ enabled sub-projects. Nearly all of these variable names begin with The full list, as of March 2023, is: ``AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;LoongArch;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore`` + You can also specify ``host`` or ``Native`` to automatically detect and + include the target corresponding to the host machine's architecture, or + use ``all`` to include all available targets. + For example, on an x86_64 machine, specifying ``-DLLVM_TARGETS_TO_BUILD=host`` + will include the ``X86`` target. + **LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN**:BOOL If enabled, the compiler version check will only warn when using a toolchain which is about to be deprecated, instead of emitting an error.