Update build.sh
This commit is contained in:
4
build.sh
4
build.sh
@@ -583,8 +583,8 @@ compile_source_code() {
|
|||||||
echo -e " ${BOLD}${YELLOW_COLOR}💾 创建工具链缓存...${RESET}"
|
echo -e " ${BOLD}${YELLOW_COLOR}💾 创建工具链缓存...${RESET}"
|
||||||
mkdir -p toolchain-cache
|
mkdir -p toolchain-cache
|
||||||
|
|
||||||
if tar -I "zstd -19 -T$(nproc --all)" -cf toolchain-cache/toolchain_musl_${toolchain_arch}_gcc-${gcc}${tools_suffix}.tar.zst ./{build_dir,dl,staging_dir,tmp}; then
|
if tar -I "zstd -19 -T$(nproc --all)" -cf toolchain-cache/toolchain_musl_${toolchain_arch}_gcc-${gcc}.tar.zst ./{build_dir,dl,staging_dir,tmp}; then
|
||||||
echo -e " ${GREEN_COLOR}✓${RESET} 缓存文件: toolchain_${LIBC}_${toolchain_arch}_gcc-${gcc}.tar.zst"
|
echo -e " ${GREEN_COLOR}✓${RESET} 缓存文件: toolchain_musl_${toolchain_arch}_gcc-${gcc}.tar.zst"
|
||||||
else
|
else
|
||||||
echo -e " ${RED_COLOR}✗${RESET} 缓存创建失败"
|
echo -e " ${RED_COLOR}✗${RESET} 缓存创建失败"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user