Skip to content

Commit 3c3fc20

Browse files
committed
build: exit with error if install.sh is running on an ARM-based machine
1 parent 2732c45 commit 3c3fc20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ err() {
77
exit 1
88
}
99

10+
if [[ "$(uname -p)" =~ "arm" ]]; then
11+
err "Unsupported CPU architecture: $(uname -p)."
12+
fi
13+
1014
if [[ -n "${1-}" ]]
1115
then
1216
LIBQUIL_URL_PREFIX="https://github.com/rigetti/libquil/releases/download/v${1}"

0 commit comments

Comments
 (0)