diff --git a/scripts/environment/bootstrap-ubuntu-20.04.sh b/scripts/environment/bootstrap-ubuntu-20.04.sh index 84f9719d5dfc3..2fe3edfc6c2aa 100755 --- a/scripts/environment/bootstrap-ubuntu-20.04.sh +++ b/scripts/environment/bootstrap-ubuntu-20.04.sh @@ -133,7 +133,7 @@ if [ -z "${DISABLE_MOLD:-""}" ] ; then # first when trying to load the shared object, so we can dodge having to care about the "right" lib folder to put it in. TEMP=$(mktemp -d) MOLD_VERSION=1.2.1 - MOLD_TARGET=mold-${MOLD_VERSION}-x86_64-linux + MOLD_TARGET=mold-${MOLD_VERSION}-$(uname -m)-linux curl -fsSL "https://github.com/rui314/mold/releases/download/v${MOLD_VERSION}/${MOLD_TARGET}.tar.gz" \ --output "$TEMP/${MOLD_TARGET}.tar.gz" tar \