Skip to content

Commit 8f0d8b9

Browse files
committed
Minor code cleanup
1 parent 433a88c commit 8f0d8b9

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build-windows.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ clean_storage() {
2626
'/c/Program Files/PostgreSQL' '/c/Program Files/dotnet' \
2727
"$JAVA_HOME_8_X64" "$JAVA_HOME_11_X64" "$JAVA_HOME_17_X64" \
2828
"$GOROOT_1_15_X64" "$GOROOT_1_16_X64" "$GOROOT_1_17_X64" "$GOROOT_1_18_X64"
29-
29+
3030
# Remove libzstd.dll.a to make sure zstd is statically linked
3131
rm -f /ucrt64/lib/libzstd.dll.a
3232
}
@@ -46,6 +46,7 @@ build() {
4646
}
4747

4848
collect() {
49+
cp -af rust-out out
4950
cd out
5051

5152
# Remove unused files

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ build() {
5555
}
5656

5757
collect() {
58+
cp -af rust-out out
5859
cd out
60+
5961
find . -name '*.old' -delete
6062
cp -af ../rust/build/$TRIPLE/llvm/bin llvm-bin
61-
cp -af lib/rustlib/$TRIPLE/bin/rust-lld llvm-bin/lld
62-
ln -sf lld llvm-bin/ld
6363
find ../rust/build/$TRIPLE/llvm/lib -name "*.${DYN_EXT}*" -exec cp -an {} lib \;
6464
local lib_llvm="libLLVM.${DYN_EXT}"
6565
if [ -L "lib/$lib_llvm" ]; then

common.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ run_cmd() {
140140
;;
141141
collect)
142142
rm -rf out
143-
cp -af rust-out out
144143
collect
145144
;;
146145
ndk)
@@ -158,7 +157,6 @@ run_cmd() {
158157
;;
159158
*)
160159
echo "Unknown action \"$1\""
161-
echo "./build.sh clone/build/ndk/dist"
162160
exit 1
163161
;;
164162
esac

0 commit comments

Comments
 (0)