<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/111356>111356</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLVM_TARGETS_TO_BUILD incomplete documentation (missing "host", "Native")
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          PerMildner
      </td>
    </tr>
</table>

<pre>
    https://github.com/llvm/llvm-project/blob/a1c0ba1646f5a80dadd34f55e4a36d5409c2675a/llvm/docs/CMake.rst?plain=1#L832

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](https://github.com/llvm/llvm-project/blob/a1c0ba1646f5a80dadd34f55e4a36d5409c2675a/llvm/docs/CMake.rst?plain=1#L832) 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`).



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVU1v6jgX_jWHjdUosUmARRYESm-l0hcV2reaTXWSHIjnOjaynXLz70dO4ZZK985odrOx4eTk6MnzYaNz8qCJckgLSJcj7HxjbL4hu5aq1mRHpan7vPH-6EDMga-Arw7SN10ZVaYFvlLq_bLdHK35kyoPfFUqUwJ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