Skip to content

Commit 3172ff4

Browse files
authored
Merge pull request swiftlang#22856 from compnerd/a-perfect-library-exports-nothing
2 parents c2c8afe + 22fde69 commit 3172ff4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,11 @@ function(_add_swift_library_single target name)
11951195
"${SWIFTLIB_SINGLE_FORCE_BUILD_OPTIMIZED_keyword}"
11961196
RESULT_VAR_NAME c_compile_flags
11971197
)
1198+
if(SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS)
1199+
if(libkind STREQUAL SHARED)
1200+
list(APPEND c_compile_flags -D_WINDLL)
1201+
endif()
1202+
endif()
11981203
_add_variant_link_flags(
11991204
SDK "${SWIFTLIB_SINGLE_SDK}"
12001205
ARCH "${SWIFTLIB_SINGLE_ARCHITECTURE}"

0 commit comments

Comments
 (0)