-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Platform: Update module maps for the static SDK #81826
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
compnerd
merged 2 commits into
swiftlang:main
from
Steelskin:fabrice/update-ucrt-vcruntime-modulemap
Jun 3, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why is this textual?
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
textual
annotation prevents the header from being compiled when the header is built. It is instead textually included on demand. It must still parse properly, mind you.IIUC, for our use case, what this means is that its symbols are not directly included in the compiled
stdnoreturn
module but they will still be present in theucrt
module since this header is included by other headers in the module - this also applies to othertextual
headers defined here.This is a hackier solution than I would like but it works for all of the Windows 10 SDK versions that I have tried.
complex.h
is still being a pain because it includesccomplex
if you build it in C++ mode and also disables some symbols, which is just wrong IMO.For the rest, we can rely on Swift tests. It has been my experience that they are rather extensive.
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.
Right, I understand the behaviour of the textual heaader. I am wondering what is the cycle that this is trying to break. It seems that there are two cycles present:
stddef.h
stdnoreturn.h
TBH, making these two textual to make things work as a workaround is fine. This is still a better state than we were in previously.