-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Enable compiler-rt on Windows #33952
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
Conversation
Why is this required for swift driver? There's something else that must be going on as this shouldn't be needed. |
|
I saw in the code that at least the latter one is supported (or is going to be supported) on Windows. |
The profiling library doesn't work on Windows AFAIK (that is For the sanitizers, I don't think that you can just enable compiler-rt to build the sanitizers. Not all the sanitizers work on Windows IIRC, and I think that you need to do a separate build for building the sanitizers as compiler-rt will build just the builtins. |
By saying this, do you mean the flag is ignored on Windows, or will trigger an error?
Does ETW have a command-line interface? Is it going to be integrated(invoked) by Swift or not? |
At least ASan works. I don’t know where we can find sanitizers specifically optimized for Windows, but |
The issue isn’t just that the profile runtime and some of the sanitizers doesn’t work, some of then don’t even build. Microsoft is already working to get ASAN working and part of MSVC, so it is actually best to leave that support out for the time being until that work settles. ETW is an API, not a program. You need to adjust the code generation to work with it. There’s no command line interface to it AFAIK. |
Based on your description, the most suitable plan for now is:
If it’s okay, I’ll comment out the current codes and reject those flags. This PR and the one in |
Sure, that sounds fine, though I think that the TODOs are probably better served as issues on JIRA. I don't think that rejecting the flags is necessary, and it unnecessarily increases the amount of work to even test things. I think it is better to just setup everything, but indicate that the features are known to not work via the readme (or emitting a note/warning that the functionality is not expected to work yet) |
Created SR-13557 Also, see swiftlang/swift-driver#252 for the current solution |
Enable
compiler-rt
on Windows. It is required forswift-driver
and other components to findclang_rt
libs.Resolves SR-NNNN.