File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ cd $TMP_DIR/$TOOLCHAIN_NAME
61
61
62
62
# Merge wasi-sdk and toolchain
63
63
cp -r $WASI_SDK_PATH /lib/clang usr/lib
64
- cp $WASI_SDK_PATH /bin/* usr/bin
64
+ cp -a $SOURCE_PATH /build/Ninja-ReleaseAssert/llvm-* /bin/clang* usr/bin
65
+ cp -a $WASI_SDK_PATH /bin/* ld usr/bin
65
66
cp -r $WASI_SDK_PATH /share/wasi-sysroot usr/share
66
67
67
68
# Build SwiftPM and install it into toolchain
@@ -73,7 +74,7 @@ sed -i -e "s@\".*/include@\"../../../../share/wasi-sysroot/include@g" $TMP_DIR/$
73
74
# Copy nightly-toolchain's host environment stdlib into toolchain
74
75
75
76
if [[ " $( uname) " == " Linux" ]]; then
76
- cp -r $NIGHTLY_TOOLCHAIN /usr/lib/swift/linux $TMP_DIR /$TOOLCHAIN_NAME /usr/lib/swift
77
+ cp -a $NIGHTLY_TOOLCHAIN /usr/lib/* $TMP_DIR /$TOOLCHAIN_NAME /usr/lib || true
77
78
else
78
79
cp -r $NIGHTLY_TOOLCHAIN /usr/lib/swift/macosx $TMP_DIR /$TOOLCHAIN_NAME /usr/lib/swift
79
80
fi
You can’t perform that action at this time.
0 commit comments