Created
October 22, 2018 14:44
-
-
Save asaaki/ed17a870aad7d8e1469beac8a74f6736 to your computer and use it in GitHub Desktop.
(rustup) add or remove list of targets for a list of toolchains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
targets=(armv7-unknown-linux-musleabihf thumbv7em-none-eabi armv7-unknown-linux-musleabihf) | |
toolchains=(stable beta nightly) | |
for toolchain in $toolchains; do | |
for target in $targets; do | |
echo "--> toolchain $toolchain and target $target" | |
rustup target install $target --toolchain $toolchain | |
# rustup target remove $target --toolchain $toolchain | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment