Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.sh #1450

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ UbuntuArmLLVM="https://github.com/llvm/llvm-project/releases/download/llvmorg-${
UbuntuLLVM="https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVMVer}/clang+llvm-${LLVMVer}-x86_64-linux-gnu-ubuntu-18.04.tar.xz"
SourceLLVM="https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-${LLVMVer}.zip"
UbuntuZ3="https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-ubuntu-16.04.zip"
UbuntuZ3Arm="https://github.com/bjjwwang/z3-aarch64/archive/refs/tags/4.8.7.zip"
SourceZ3="https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.8.8.zip"

# Keep LLVM version suffix for version checking and better debugging
Expand Down Expand Up @@ -156,7 +157,7 @@ if [[ $sysOS == "Darwin" ]]; then
elif [[ $sysOS == "Linux" ]]; then
if [[ "$arch" == "aarch64" ]]; then
urlLLVM="$UbuntuArmLLVM"
urlZ3="z3 does not have x86 arm pre-built libs"
urlZ3="$UbuntuZ3Arm"
OSDisplayName="Ubuntu arm64"
else
urlLLVM="$UbuntuLLVM"
Expand Down Expand Up @@ -204,10 +205,7 @@ fi
if [[ ! -d "$Z3_DIR" ]]; then
if [[ ! -d "$Z3Home" ]]; then
# M1 Macs give back arm64, some Linuxes can give aarch64.
if [[ "$sysOS" = "Linux" && "$arch" = "aarch64" ]]; then
# only linux arm build from source
build_z3_from_source
elif [[ "$sysOS" = "Darwin" ]]; then
if [[ "$sysOS" = "Darwin" ]]; then
echo "Downloading Z3 binary for $OSDisplayName"
brew install z3
if [ $? -eq 0 ]; then
Expand Down
Loading