Skip to content

Commit fa591a1

Browse files
committed
build: adjust for split libdispatch SDK overlay
This adjust the build to explicitly link against swiftDispatch to enable the split SDK overlay on non-Darwin targets. This would be fixed when we switch over to the CMake based build which uses the swift driver to link which will use the auto-link-extract functionality to make the ELF targets build.
1 parent f5a076d commit fa591a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
'-I'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src/swift',
127127
'-Xcc -fblocks'
128128
])
129-
foundation.LDFLAGS += '-ldispatch -L'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src -rpath \$$ORIGIN '
129+
foundation.LDFLAGS += '-ldispatch -lswiftDispatch -L'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src -rpath \$$ORIGIN '
130130
foundation.LDFLAGS += '-L' + Configuration.current.variables['LIBDISPATCH_BUILD_DIR'] + ' -lBlocksRuntime '
131131

132132
foundation.SWIFTCFLAGS = " ".join(swift_cflags)

0 commit comments

Comments
 (0)