Skip to content

LLVM_TARGETS_TO_BUILD incomplete documentation (missing "host", "Native") #111356

@PerMildner

Description

@PerMildner

**LLVM_TARGETS_TO_BUILD**:STRING

  1. The "full list" of LLVM_TARGETS_TO_BUILD values is not complete and is missing the useful and commonly used values host and Native.
  2. The host and Native values for LLVM_TARGETS_TO_BUILD do not seem to be documented anywhere.

CMake.rst currently says:

LLVM_TARGETS_TO_BUILD:STRING
Semicolon-separated list of targets to build, or all for building all targets. Case-sensitive. Defaults to all. Example: -DLLVM_TARGETS_TO_BUILD="X86;PowerPC". 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

However, many places, both in llvm-project and outside, seem to use the values host and Native, which sounds like useful options. Unfortunately both are undocumented (and it is unclear whether they mean the same thing and why sometimes host is used and sometimes Native).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions