Skip to content

Commit a099116

Browse files
bennofsadpaco-aws
andauthored
install_cbmc.sh: build from source on non-x86_64 (#2877)
CBMC only provides binaries for x86_64, but it runs fine on other arches (like aarch64) Build from source in that case --------- Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
1 parent 3586ec8 commit a099116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/setup/ubuntu/install_cbmc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
UBUNTU_VERSION=$(lsb_release -rs)
1616
MAJOR=${UBUNTU_VERSION%.*}
1717

18-
if [[ "${MAJOR}" -gt "18" ]]
18+
if [[ "${MAJOR}" -gt "18" ]] && [[ $(dpkg --print-architecture) = "amd64" ]]
1919
then
2020
FILE="ubuntu-${UBUNTU_VERSION}-cbmc-${CBMC_VERSION}-Linux.deb"
2121
URL="https://github.com/diffblue/cbmc/releases/download/cbmc-${CBMC_VERSION}/$FILE"
@@ -29,7 +29,7 @@ then
2929
exit 0
3030
fi
3131

32-
# Binaries are no longer released for 18.04, so build from source
32+
# There are no binaries for 18.04 or for non-x86_64, so build from source
3333

3434
WORK_DIR=$(mktemp -d)
3535
git clone \

0 commit comments

Comments
 (0)