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

    <tr>
        <th>Summary</th>
        <td>
            unsupported option '-mwindows' for target 'x86_64-pc-windows-msvc'
        </td>
    </tr>

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

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

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

<pre>
    Am seeing the following error when building with Clang 17.0.2 on Windows using MSVC 14.3. AFAICT this is a similar issue as occurred with MinGW ( https://github.com/llvm/llvm-project/issues/64464 ), but this is with MSVC. More background in the OP of PR ( https://github.com/llvm/llvm-project/pull/67891 ) (though that doesn't fix the MSVC target issue)

```
clang.exe -DHAVE_CONFIG_H -I. -I../../include/private/autogen -I../../include/hwloc/autogen -I"/d/bld/libhwloc_1696580296225/work"/include -I"/d/bld/libhwloc_1696580296225/work"/include -I../../utils/hwloc -DLSTOPO_HAVE_GRAPHICS -ID:/bld/libhwloc_1696580296225/_h_env/Library/include -O2 -D_CRT_SECURE_NO_WARNINGS -D_MT -D_DLL -nostdlib -Xclang --dependent-lib=msvcrt -fuse-ld=lld -Dputenv=_putenv -Dmktemp=_mktemp -Dopen=_open -Dunlink=_unlink -Dclose=_close -Dstrdup=_strdup  -mwindows -ID:/bld/libhwloc_1696580296225/_h_env/Library/include -O2 -D_CRT_SECURE_NO_WARNINGS -D_MT -D_DLL -nostdlib -Xclang --dependent-lib=msvcrt -fuse-ld=lld -c -o lstopo_win-lstopo.o `test -f 'lstopo.c' || echo './'`lstopo.c
clang: error: unsupported option '-mwindows' for target 'x86_64-pc-windows-msvc'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVM9vqzgQ_mucy8iIGALhwCELjzZS21RNt90bAmPAL46N_KPp--9XhrTdd1ittG8vKyXDxzCeb2as-Rpj-CAZy9H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