Skip to content

Commit abfa2f1

Browse files
Fix rpath to point to platform specific lib path
1 parent 81a696c commit abfa2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/webassembly/build-swiftpm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ SWIFT_BUILD=${NIGHTLY_TOOLCHAIN}/usr/bin/swift-build
1212
build_swiftpm() {
1313
local build_flags=$SWIFT_BUILD_FLAGS
1414
if [[ "$(uname)" == "Darwin" ]]; then
15-
rpath_prefix='@executable_path/../'
15+
rpath_prefix='@executable_path/../lib/swift/macosx'
1616
else
17-
rpath_prefix='$ORIGIN/../'
17+
rpath_prefix='$ORIGIN/../lib/swift/linux'
1818
fi
1919
build_flags="${build_flags} -Xlinker -rpath -Xlinker ${rpath_prefix}"
2020
cd ${SOURCE_PATH}/swiftpm

0 commit comments

Comments
 (0)