Skip to content

Commit 3d1839a

Browse files
committed
build: support SWIFT_MODULE_DEPENDS_WINDOWS
Add support for depending on swift modules for the windows target. This is needed as the private swift modules start to build on Windows.
1 parent c3c6fdc commit 3d1839a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,6 +1619,7 @@ function(add_swift_target_library name)
16191619
SWIFT_MODULE_DEPENDS_OSX
16201620
SWIFT_MODULE_DEPENDS_TVOS
16211621
SWIFT_MODULE_DEPENDS_WATCHOS
1622+
SWIFT_MODULE_DEPENDS_WINDOWS
16221623
TARGET_SDKS)
16231624

16241625
cmake_parse_arguments(SWIFTLIB
@@ -1742,6 +1743,9 @@ function(add_swift_target_library name)
17421743
elseif(${sdk} STREQUAL HAIKU)
17431744
list(APPEND swiftlib_module_depends_flattened
17441745
${SWIFTLIB_SWIFT_MODULE_DEPENDS_HAIKU})
1746+
elseif(${sdk} STREQUAL WINDOWS)
1747+
list(APPEND swiftlib_module_depends_flattened
1748+
${SWIFTLIB_SWIFT_MODULE_DEPENDS_WINDOWS})
17451749
endif()
17461750

17471751
# Collect architecture agnostic SDK framework dependencies

0 commit comments

Comments
 (0)