File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Runtimes/Core/SwiftRemoteMirror
include/swift/SwiftRemoteMirror Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
2
2
add_library (swiftRemoteMirror
3
3
SwiftRemoteMirror.cpp)
4
+ target_compile_definitions (swiftRemoteMirror PUBLIC
5
+ $<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:swiftRemoteMirror_STATIC>)
4
6
target_link_libraries (swiftRemoteMirror PRIVATE
5
7
swiftRemoteInspection)
6
8
target_include_directories (swiftRemoteMirror PRIVATE
Original file line number Diff line number Diff line change @@ -23,20 +23,16 @@ extern "C" {
23
23
# elif defined(__MACH__ )
24
24
# define SWIFT_REMOTE_MIRROR_LINKAGE __attribute__((__visibility__("default")))
25
25
# else
26
- # if defined(_WINDLL )
27
- # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllexport)
28
- # else
29
- # define SWIFT_REMOTE_MIRROR_LINKAGE
30
- # endif
26
+ # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllexport)
31
27
# endif
32
28
#else
33
29
# if defined(__ELF__ ) || defined(__MACH__ ) || defined(__WASM__ )
34
30
# define SWIFT_REMOTE_MIRROR_LINKAGE __attribute__((__visibility__("default")))
35
31
# else
36
- # if defined(_WINDLL )
37
- # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllimport)
38
- # else
32
+ # if defined(swiftRemoteMirror_STATIC )
39
33
# define SWIFT_REMOTE_MIRROR_LINKAGE
34
+ # else
35
+ # define SWIFT_REMOTE_MIRROR_LINKAGE __declspec(dllimport)
40
36
# endif
41
37
# endif
42
38
#endif
You can’t perform that action at this time.
0 commit comments