From fa591a1acdcfefc9666a66dbca8929c2489c425f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 23 Oct 2018 15:31:21 -0700 Subject: [PATCH] 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. --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index bc4e8de457..32dd2b1457 100755 --- a/build.py +++ b/build.py @@ -126,7 +126,7 @@ '-I'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src/swift', '-Xcc -fblocks' ]) - foundation.LDFLAGS += '-ldispatch -L'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src -rpath \$$ORIGIN ' + foundation.LDFLAGS += '-ldispatch -lswiftDispatch -L'+Configuration.current.variables["LIBDISPATCH_BUILD_DIR"]+'/src -rpath \$$ORIGIN ' foundation.LDFLAGS += '-L' + Configuration.current.variables['LIBDISPATCH_BUILD_DIR'] + ' -lBlocksRuntime ' foundation.SWIFTCFLAGS = " ".join(swift_cflags)