Skip to content

Commit a818de1

Browse files
committed
[cxx-interop] Modularize xsmf_control on Windows
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 ```
1 parent ba88078 commit a818de1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/Platform/vcruntime.modulemap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,11 @@ module std [system] {
757757
export *
758758
}
759759

760+
explicit module xsmf_control {
761+
header "xsmf_control.h"
762+
export *
763+
}
764+
760765
explicit module xstring {
761766
header "xstring"
762767
export *

0 commit comments

Comments
 (0)