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

    <tr>
        <th>Summary</th>
        <td>
            unsupported option '-mwindows' for target 'aarch64-w64-mingw32'
        </td>
    </tr>

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

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

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

<pre>
    When doing a native build of NSPR 4.35 on Windows on ARM using [LLVM 17.0.0 RC1](https://github.com/mstorsjo/llvm-mingw/releases/tag/20230730) I got the error `unsupported option '-mwindows' for target 'aarch64-w64-mingw32'`.

However when building for MinGW-w64 the `-mwindows` is normally supported (at least I know it is for GCC).

Full output:
```raw
make -C config export
make[1]: Entering directory '/r/winlibs_llvm17rc1/11064.nspr/nspr-4.35/nspr/config'
/d/Prog/winlibs_llvm17rc1/llvm-mingw-20230730-ucrt-aarch64/bin/clang.exe -mwindows -o now.o -c     -Wno-int-conversion -pthread -g   -UNDEBUG -DDEBUG_brecht -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWINNT=1 -D_ARM64_=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG now.c
clang-17: error: unsupported option '-mwindows' for target 'aarch64-w64-mingw32'
make[1]: *** [../config/rules.mk:450: now.o] Error 1
make[1]: Leaving directory '/r/winlibs_llvm17rc1/11064.nspr/nspr-4.35/nspr/config'
make: *** [config/rules.mk:163: export] Error 2
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0Vc2SozgMfhrlooIy5i8cONAhZLq2O52i__aWIuAQTxM7ZZsw_fZbhsxkdrZ7TrMpChRLlj7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