Skip to content

Commit fbd456b

Browse files
committed
SwiftRemoteMirror: repair the windows build
This symbol is meant to be exposed to users of the SwiftRemoteMirror library which requires that it is explicitly marked with the appropriate DLL storage on Windows. This should repair the Windows build.
1 parent d4757d4 commit fbd456b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

include/swift/SwiftRemoteMirror/SwiftRemoteMirror.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
extern "C" {
3838
#endif
3939

40+
SWIFT_REMOTE_MIRROR_LINKAGE
4041
extern unsigned long long swift_reflection_classIsSwiftMask;
4142

4243
/// Get the metadata version supported by the Remote Mirror library.

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#include "swift/SwiftRemoteMirror/Platform.h"
14+
1315
#define SWIFT_CLASS_IS_SWIFT_MASK swift_reflection_classIsSwiftMask
14-
extern "C" unsigned long long swift_reflection_classIsSwiftMask = 2;
16+
extern "C" {
17+
SWIFT_REMOTE_MIRROR_LINKAGE
18+
unsigned long long swift_reflection_classIsSwiftMask = 2;
19+
}
1520

1621
#include "swift/Reflection/ReflectionContext.h"
1722
#include "swift/Reflection/TypeLowering.h"

0 commit comments

Comments
 (0)