#!/bin/bash # # set build target for 64bit Linux or 32bit raspberrypi # if [[ -z $RUST_TARGET ]] then if [[ armv6l == $(uname -m) ]] then export RUST_TARGET=arm-unknown-linux-gnueabihf elif [[ x86_64 == $(uname -m) ]] then export RUST_TARGET=x86_64-unknown-linux-musl fi fi echo $RUST_TARGET