Skip to content

Commit

Permalink
[clang] [docs] Clarify the issue with compiler-rt on Windows/MSVC (ll…
Browse files Browse the repository at this point in the history
…vm#106875)

Compiler-rt does support Windows just fine, even if outdated docs pages
didn't list it as one of the supported OSes, this is being rectified in
llvm#106874.

MinGW is another environment configuration on Windows, where compiler-rt
or libgcc is linked in automatically, so there's no issue with having
such builtins functions available.

For MSVC style environments, compiler-rt builtins do work just fine, but
Clang doesn't automatically link them in. See e.g.
https://discourse.llvm.org/t/improve-autolinking-of-compiler-rt-and-libc-on-windows-with-lld-link/71392
for a discussion on how to improve this situation. But none of that
issue is that compiler-rt itself wouldn't support Windows.
  • Loading branch information
mstorsjo authored Sep 3, 2024
1 parent 451a313 commit eb05e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/www/c_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ <h2 id="c99">C99 implementation status</h2>
conformance to Annex G.<br />
<br />
<code>_Complex</code> support requires an underlying support library
such as compiler-rt to provide functions like <code>__divsc3</code>,
but compiler-rt is not supported on Windows.
such as compiler-rt to provide functions like <code>__divsc3</code>.
Compiler-rt isn't linked in automatically in MSVC style environments.
</details>
</td>
</tr>
Expand Down

0 comments on commit eb05e8f

Please sign in to comment.