install.sh 305 B

123456789101112
  1. set -euxo pipefail
  2. main() {
  3. if [ $TARGET != x86_64-unknown-linux-gnu ]; then
  4. rustup target add $TARGET
  5. fi
  6. mkdir gcc
  7. curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
  8. }
  9. main