Skip to content

Conversation

@egorzhdan
Copy link
Contributor

This adds xsmf_control.h into the STL modulemap on Windows.

Fixes the following compiler error emitted by Clang when trying to use std::variant from Swift with C++ interop:

...\MSVC\14.42.34433\include\variant:923:25: error: missing '#include <xsmf_control.h>'; '_Non_trivial_move_assign' must be defined before it is used

This adds `xsmf_control.h` into the STL modulemap on Windows.

Fixes the following compiler error emitted by Clang when trying to use `std::variant` from Swift with C++ interop:
```
...\MSVC\14.42.34433\include\variant:923:25: error: missing '#include <xsmf_control.h>'; '_Non_trivial_move_assign' must be defined before it is used
```
@egorzhdan egorzhdan requested a review from compnerd July 29, 2025 13:32
@egorzhdan egorzhdan requested a review from a team as a code owner July 29, 2025 13:32
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jul 29, 2025
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan
Copy link
Contributor Author

This unblocks #83372.

@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test macOS

@egorzhdan egorzhdan enabled auto-merge July 29, 2025 15:29
@egorzhdan egorzhdan merged commit 0266913 into swiftlang:main Jul 29, 2025
3 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/stl-xsmf-control branch July 30, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ interop Feature: Interoperability with C++

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants