We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e2f22e + 71f03fb commit 81a696cCopy full SHA for 81a696c
utils/webassembly/build-swiftpm.sh
@@ -10,8 +10,15 @@ SWIFT_BUILD_FLAGS="-c release"
10
SWIFT_BUILD=${NIGHTLY_TOOLCHAIN}/usr/bin/swift-build
11
12
build_swiftpm() {
13
+ local build_flags=$SWIFT_BUILD_FLAGS
14
+ if [[ "$(uname)" == "Darwin" ]]; then
15
+ rpath_prefix='@executable_path/../'
16
+ else
17
+ rpath_prefix='$ORIGIN/../'
18
+ fi
19
+ build_flags="${build_flags} -Xlinker -rpath -Xlinker ${rpath_prefix}"
20
cd ${SOURCE_PATH}/swiftpm
- ${SWIFT_BUILD} ${SWIFT_BUILD_FLAGS}
21
+ ${SWIFT_BUILD} ${build_flags}
22
}
23
24
install_binary() {
0 commit comments