File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
4848collect () {
49+ cp -af rust-out out
4950 cd out
5051
5152 # Remove unused files
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ build() {
5555}
5656
5757collect () {
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments