Skip to content

Commit 36a0d44

Browse files
authored
[LLVM][DOCS] Add documentation for 'host' and 'Native' options in LLVM_TARGETS_TO_BUILD. (llvm#111382)
From llvm#111356
1 parent b773da0 commit 36a0d44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/docs/CMake.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,12 @@ enabled sub-projects. Nearly all of these variable names begin with
847847
The full list, as of March 2023, is:
848848
``AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;LoongArch;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore``
849849

850+
You can also specify ``host`` or ``Native`` to automatically detect and
851+
include the target corresponding to the host machine's architecture, or
852+
use ``all`` to include all available targets.
853+
For example, on an x86_64 machine, specifying ``-DLLVM_TARGETS_TO_BUILD=host``
854+
will include the ``X86`` target.
855+
850856
**LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN**:BOOL
851857
If enabled, the compiler version check will only warn when using a toolchain
852858
which is about to be deprecated, instead of emitting an error.

0 commit comments

Comments
 (0)