Skip to content

Instantly share code, notes, and snippets.

@asaaki
Created October 22, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asaaki/ed17a870aad7d8e1469beac8a74f6736 to your computer and use it in GitHub Desktop.
Save asaaki/ed17a870aad7d8e1469beac8a74f6736 to your computer and use it in GitHub Desktop.
(rustup) add or remove list of targets for a list of toolchains
#!/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