]> prime8.dev >> repos - ttyd.git/commitdiff
cross: use a github mirror of musl.cc artifacts
authorShuanglei Tao <tsl0922@gmail.com>
Thu, 4 Aug 2022 01:40:30 +0000 (09:40 +0800)
committerGitHub <noreply@github.com>
Thu, 4 Aug 2022 01:40:30 +0000 (09:40 +0800)
scripts/cross-build.sh

index d4391a702388cca152e398dab83007f8ccb88097..22c98491034c41f2605718471a53b6056a836f0c 100755 (executable)
@@ -130,11 +130,12 @@ build() {
     ALIAS="$2"
     STAGE_DIR="${STAGE_ROOT}/${TARGET}"
     BUILD_DIR="${BUILD_ROOT}/${TARGET}"
+    MUSL_CC_URL="https://github.com/tsl0922/musl-toolchains/releases/download/2021-11-23"
 
     echo "=== Installing toolchain ${ALIAS} (${TARGET})..."
 
     mkdir -p "${CROSS_ROOT}" && export PATH="${PATH}:/opt/cross/bin"
-    curl -fSsLo- "https://musl.cc/${TARGET}-cross.tgz" | tar xz -C "${CROSS_ROOT}" --strip-components 1
+    curl -fSsLo- "${MUSL_CC_URL}/${TARGET}-cross.tgz" | tar xz -C "${CROSS_ROOT}" --strip-components 1
 
     echo "=== Building target ${ALIAS} (${TARGET})..."