Skip to content

[compiler-rt] [docs] Mention Windows as one of the supported OSes #106874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

mstorsjo
Copy link
Member

Compiler-rt can be built for Windows, and most parts of it work. Some parts only really work on x86/x86_64 (like address sanitizers), but the OS overall is supported.

Compiler-rt can be built for Windows, and most parts of it work.
Some parts only really work on x86/x86_64 (like address sanitizers),
but the OS overall is supported.
mstorsjo added a commit to mstorsjo/llvm-project that referenced this pull request Aug 31, 2024
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.
@mstorsjo mstorsjo requested a review from rnk August 31, 2024 22:01
@mstorsjo mstorsjo merged commit af5c18a into llvm:main Sep 3, 2024
9 checks passed
@mstorsjo mstorsjo deleted the compiler-rt-windows-support branch September 3, 2024 07:57
mstorsjo added a commit that referenced this pull request Sep 3, 2024
…06875)

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
#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants