Skip to content

Commit

Permalink
cross: use a github mirror of musl.cc artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 4, 2022
1 parent e11e784 commit 6e089f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cross-build.sh
Expand Up @@ -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})..."

Expand Down

0 comments on commit 6e089f6

Please sign in to comment.