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

    <tr>
        <th>Summary</th>
        <td>
            Clang, Windows, WebAssembly - Missing "wasm" target on windows clang
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I downloaded the latest stable clang version [LLVM 19.1.7](https://github.com/llvm/llvm-project/releases/tag/llvmorg-19.1.7), from the windows [clang+llvm-19.1.7-x86_64-pc-windows-msvc.tar.xz](https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/clang+llvm-19.1.7-x86_64-pc-windows-msvc.tar.xz) link.

I tried building for `wasm` with it, but it does not seem to support the target, it says: `error: unable to create target: 'No available targets are compatible with triple "wasm32"'`

Also `--print-targets` does not include `wasm`:
```
C:\Users\adam>clang --print-targets

  Registered Targets:
    aarch64    - AArch64 (little endian)
    aarch64_32 - AArch64 (little endian ILP32)
    aarch64_be - AArch64 (big endian)
    arm - ARM
    arm64      - ARM64 (little endian)
    arm64_32   - ARM64 (little endian ILP32)
    armeb      - ARM (big endian)
    thumb      - Thumb
 thumbeb    - Thumb (big endian)
    x86        - 32-bit X86: Pentium-Pro and above
    x86-64     - 64-bit X86: EM64T and AMD64
```

How can I build for `wasm` on windows? I have seen multiple different website talking about building `wasm` for windows so how come the target is not there?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykVc1u4zgMfhrlQjhw5J_YBx_cdIIt0OwWg-7PbSBbtK0d2QokOmn36ReynSbT2Q4wWCBAJPIj-ZEmKeGcagfEgiV3LLlfiZE6Y4t74X7retM0q8rI1-IBpDkP2giJEqhD0ILQETgSlUaotRhaOKF1ygzAkrvHxz8OsMnXm_WWJfeMZx3R0bGoZHzP-L5V1I3VujY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