From 3c3fc207329ff90cd48bb3a96bd42aa2b9911d9d Mon Sep 17 00:00:00 2001 From: Mark Skilbeck Date: Thu, 23 Nov 2023 14:24:01 +0000 Subject: [PATCH] build: exit with error if install.sh is running on an ARM-based machine --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 6695113..9012dcf 100755 --- a/install.sh +++ b/install.sh @@ -7,6 +7,10 @@ err() { exit 1 } +if [[ "$(uname -p)" =~ "arm" ]]; then + err "Unsupported CPU architecture: $(uname -p)." +fi + if [[ -n "${1-}" ]] then LIBQUIL_URL_PREFIX="https://github.com/rigetti/libquil/releases/download/v${1}"