File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
include/swift/SwiftRemoteMirror
stdlib/public/SwiftRemoteMirror Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,23 @@ extern "C" {
23
23
# elif defined(__MACH__ )
24
24
# define SWIFT_REMOTE_MIRROR_LINKAGE __attribute__((__visibility__("default")))
25
25
# else
26
- # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllexport)
26
+ # if defined(_WINDLL )
27
+ # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllexport)
28
+ # else
29
+ # define SWIFT_REMOTE_MIRROR_LINKAGE
30
+ # endif
27
31
# endif
28
32
#else
29
33
# if defined(__ELF__ )
30
34
# define SWIFT_REMOTE_MIRROR_LINKAGE __attribute__((__visibility__("default")))
31
35
# elif defined(__MACH__ )
32
36
# define SWIFT_REMOTE_MIRROR_LINKAGE __attribute__((__visibility__("default")))
33
37
# else
34
- # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllimport)
38
+ # if defined(_WINDLL )
39
+ # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllimport)
40
+ # else
41
+ # define SWIFT_REMOTE_MIRROR_LINKAGE
42
+ # endif
35
43
# endif
36
44
#endif
37
45
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ if(SWIFT_INCLUDE_TOOLS)
30
30
31
31
add_swift_host_library (swiftRemoteMirror STATIC
32
32
SwiftRemoteMirror.cpp )
33
+ target_compile_definitions (swiftRemoteMirror PRIVATE _LIB )
33
34
target_compile_options (swiftRemoteMirror PRIVATE
34
35
${SWIFT_RUNTIME_CXX_FLAGS} )
35
36
set_property (TARGET swiftRemoteMirror APPEND_STRING PROPERTY LINK_FLAGS
You can’t perform that action at this time.
0 commit comments