-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Fix errors and warnings building swift/IRGen on Windows using MSVC #5958
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
|
Thanks @compnerd
MSVC doesn't think so - I think its because the first check if |
cmake/modules/AddSwift.cmake
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we actually just want to fix these in most cases. Those particular files really are different from the others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…and yes, that does deserve a comment in those files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted this commit, removed the MSVC checks (as clang-cl needs them but defined MSC_VER). We also now ignore unknown pragmas so this is pointless.
I also added a TODO to the pragmas that I shall try to address once I'm not so busy. Thanks
lib/IRGen/MetadataPath.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The template shouldn't be required by Clang, either, since no explicit template arguments are being given. We should be able to unconditionally remove it from both of these places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, fixed
lib/IRGen/GenStruct.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I tried once. It really doesn't make sense with the way these files are using overrides—they're coming from templates. (Or macros, I can't remember.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always a reason. I reverted the TODOs. There are no changes to the pragmas in this PR
|
LGTM. |
template, but I'm no expertAnd, don't worry. We're not quite halfway through my PR attack, but for now I'm gonna stop and ease your workload.