diff --git a/tests/install_rust.sh b/tests/install_rust.sh index b44b94be7..65a075ba9 100755 --- a/tests/install_rust.sh +++ b/tests/install_rust.sh @@ -35,11 +35,11 @@ export PATH="${PATH}:${HOME}/.cargo/bin" ## this command will not take too long to run. rustup toolchain install ${version} rustup default ${version} -if [ "${rustarch}" == "powerpc64le" ] || [ "${rustarch}" == "s390x" ] ; then - rustup target add ${rustarch}-unknown-linux-gnu -else +if [ "${rustarch}" == "x86_64" ] || [ "${rustarch}" == "aarch64" ] ; then rustup target add ${rustarch}-unknown-linux-musl $([ "$(whoami)" != "root" ] && echo sudo) ln -sf /usr/bin/g++ /bin/musl-g++ +else + rustup target add ${rustarch}-unknown-linux-gnu fi rustup component add rustfmt rustup component add clippy