diff --git a/rust-build/README.md b/rust-build/README.md index 0addf7a5f84f01e53e58df912cc631c38e36ff69..87e7652cedd2b21c83086266d055c4298aca807b 100644 --- a/rust-build/README.md +++ b/rust-build/README.md @@ -46,7 +46,7 @@ python3 ./build/scripts/download_sdk.py --branch OpenHarmony-5.0.0-Release --pro 3、download build code ``` -git clone --depth=1 https://gitee.com/openharmony/third_party_llvm-project.git llvm +git clone --depth=1 https://gitee.com/openharmony/third_party_llvm-project.git third_party/llvm-project git clone --depth=1 https://gitee.com/openharmony-sig/third_party_rust_rust.git third_party/rust/rust ``` diff --git a/rust-build/function.sh b/rust-build/function.sh index 5c0fbd859336ae64f8b436a13acc516a1111d2bb..f4a3a68a5f3aec0f770be4148d0f790a8c0c8ed9 100644 --- a/rust-build/function.sh +++ b/rust-build/function.sh @@ -97,10 +97,11 @@ download_rust_static_source() { curl -O -k -m 300 ${rust_down_net}/1.71.0/${file} & fi done + wait + if [ ! -e "rustc-1.72.0-src.tar.gz" ]; then - curl -O -k -m 300 ${rust_down_net}/1.72.0/rustc-1.72.0-src.tar.gz & + curl -O -k -m 600 ${rust_down_net}/1.72.0/rustc-1.72.0-src.tar.gz fi - wait popd cp ${rust_static_dir}/*.tar.xz ${rust_source_dir}/build/cache/${pre_rust_date}/ cp ${rust_static_dir}/rustc-1.72.0-src.tar.gz ${root_build_dir}