Skip to content

Commit

Permalink
install_cbmc.sh: build from source on non-x86_64 (#2877)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bennofs and adpaco-aws authored Nov 17, 2023
1 parent 3586ec8 commit a099116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setup/ubuntu/install_cbmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi
UBUNTU_VERSION=$(lsb_release -rs)
MAJOR=${UBUNTU_VERSION%.*}

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

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

WORK_DIR=$(mktemp -d)
git clone \
Expand Down

0 comments on commit a099116

Please sign in to comment.