Skip to content

Platform: add a definition for std on Windows #59767

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 2 commits into from
Jun 29, 2022
Merged

Conversation

compnerd
Copy link
Member

This adds the c++ module for Windows to help further the C++ interop.

This adds the c++ module for Windows to help further the C++ interop.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @egorzhdan @zoecarver @hyp

Remove `spanstream` header from the module until we can identify a way to do per-release variants.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please build toolchain windows platform

Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing! Does clang report any modularization issues when trying to import that module? If not, that's great!

Could you please also add a test for the stdlib module interface? We already have these tests for libc++ and libstdc++ (swift/test/Interop/Cxx/stdlib).
(doesn't have to be a part of this PR)

@compnerd
Copy link
Member Author

clang doesn't seem to object any longer. There was a fair amount of restructuring that I did to get this to work. The tests and a couple of small samples locally seem to be able to use -fmodules with clang++ with this. Sure, I can add a test in a follow up.

@compnerd compnerd merged commit b16e6d3 into swiftlang:main Jun 29, 2022
@compnerd compnerd deleted the cxx branch June 29, 2022 15:18
compnerd added a commit to compnerd/apple-swift that referenced this pull request Jul 2, 2022
Add a test to verify that the C++ module is importable and expected
functions are visible.  This was requested in swiftlang#59767 by @egorzhdan.
compnerd added a commit to compnerd/apple-swift that referenced this pull request Aug 11, 2022
Add a test to verify that the C++ module is importable and expected
functions are visible.  This was requested in swiftlang#59767 by @egorzhdan.
compnerd added a commit to compnerd/apple-swift that referenced this pull request Aug 12, 2022
Add a test to verify that the C++ module is importable and expected
functions are visible.  This was requested in swiftlang#59767 by @egorzhdan.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants