X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/b894437365797e9cdbccf4b6e6d908180e92ab81..dc9e43dd10e8be9d8205d7b6760b07622ac1680e:/buildscripts/init.sh diff --git a/buildscripts/init.sh b/buildscripts/init.sh deleted file mode 100644 index ed73ec8..0000000 --- a/buildscripts/init.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -set -euxo pipefail -cd "$(git rev-parse --show-toplevel)" - -PLATFORM=$1 - -case $PLATFORM in -mac-x86_64) - RUST_TARGET=x86_64-apple-darwin - ;; -mac-arm64) - RUST_TARGET=aarch64-apple-darwin - ;; -linux-x86_64) - RUST_TARGET=x86_64-unknown-linux-gnu - ;; -linux-armhf) - RUST_TARGET=armv7-unknown-linux-gnueabihf - ;; -linux-arm64) - RUST_TARGET=aarch64-unknown-linux-gnu - ;; -windows-x86_64) - RUST_TARGET=x86_64-pc-windows-msvc - ;; -*) - echo "Unrecognised platform" - exit 1 - ;; -esac - -export RUST_TARGET