diff options
author | 2023-12-25 21:49:08 +0100 | |
---|---|---|
committer | 2024-04-07 14:54:54 +0200 | |
commit | 8eb8959c8bac379d738afb9a4643b2eb0b5bdb3a (patch) | |
tree | 497cec62489ad1136edae737dc0850ce02c611c9 /z3/docker/cross_build.sh | |
parent | build: package Z3 solver native libraries (diff) | |
download | refinery-8eb8959c8bac379d738afb9a4643b2eb0b5bdb3a.tar.gz refinery-8eb8959c8bac379d738afb9a4643b2eb0b5bdb3a.tar.zst refinery-8eb8959c8bac379d738afb9a4643b2eb0b5bdb3a.zip |
chore(z3): bump to z3 4.12.6
We still have to build Z3 for linux-aarch64, because the official release
requires glibc 2.35 (and the corresponding libstdc++), while Amazon Linux 2023
only supports glibc 2.34.
Also enabled optimization flags from Amazon Linux 2023 for the aarch64 Z3 build.
This tecnically excludes older armv8-a platforms (like Raspberry Pi 4), but most
modern SBC (like Raspberry Pi 5) already support armv8.2-a+crypto. At any rate,
the need to run Refinery on such paltforms in unlikely. At any rate, the build
flags should be supported on Neoverse N1-based cloud providers (including Amazon
and Hetzner), as well as Apple M devices (armv8.5-a).
Diffstat (limited to 'z3/docker/cross_build.sh')
-rwxr-xr-x | z3/docker/cross_build.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/z3/docker/cross_build.sh b/z3/docker/cross_build.sh index fe5edd2f..522d5c02 100755 --- a/z3/docker/cross_build.sh +++ b/z3/docker/cross_build.sh | |||
@@ -11,6 +11,5 @@ z3_version="$(grep '^version=' ../gradle.properties | cut -d'=' -f2)" | |||
11 | rm -rf out | 11 | rm -rf out |
12 | mkdir out | 12 | mkdir out |
13 | docker run --platform linux/amd64 --rm -it -v "${PWD}:/data" --entrypoint /bin/bash docker.io/eclipse-temurin:17-jdk-focal /data/build_in_docker.sh "${z3_version}" "$(id -u)" "$(id -g)" | 13 | docker run --platform linux/amd64 --rm -it -v "${PWD}:/data" --entrypoint /bin/bash docker.io/eclipse-temurin:17-jdk-focal /data/build_in_docker.sh "${z3_version}" "$(id -u)" "$(id -g)" |
14 | rm -rf ../subprojects/solver-linux-aarch64/src/main/resources/z3java-linux-aarch64/* | 14 | rm -rf ../subprojects/solver-linux-aarch64/src/main/resources/z3java-linux-aarch64/*.so |
15 | cp ./out/* ../subprojects/solver-linux-aarch64/src/main/resources/z3java-linux-aarch64/ | 15 | cp ./out/* ../subprojects/solver-linux-aarch64/src/main/resources/z3java-linux-aarch64/ |
16 | |||