Skip to content

Commit 1b237cb

Browse files
committed
build: add an explicit link to BlocksRuntime
The SDK overlay requires the BlocksRuntime but did not explicitly link to it. This works on most platforms, however, Windows requires that all symbols are fully resolved (effectively `-z defs` on Linux). Add the missing dependency.
1 parent a736ea7 commit 1b237cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ if(ENABLE_SWIFT)
118118
DispatchStubs
119119
LINK_FLAGS
120120
-lDispatchStubs
121+
-L $<TARGET_LINKER_FILE_DIR:BlocksRuntime>
122+
-lBlocksRuntime
121123
-L $<TARGET_LINKER_FILE_DIR:dispatch>
122124
-ldispatch
123125
MODULE_NAME

0 commit comments

Comments
 (0)