common/build_style/zig-build.sh: update for zig 0.13

This commit is contained in:
tranzystorekk 2024-07-08 09:00:56 +02:00
parent 439cb0a5b1
commit 998c752385
1 changed files with 6 additions and 1 deletions

View File

@ -29,10 +29,15 @@ do_build() {
# We use zig-out to avoid path conflicts as it is the default install
# prefix used by the zig build system.
DESTDIR="zig-out" zig build \
-j"${XBPS_MAKEJOBS}" \
--sysroot "${XBPS_CROSS_BASE}" \
--search-prefix "${XBPS_CROSS_BASE}/usr" \
--prefix /usr \
--global-cache-dir /host/zig \
--libc xbps_zig_libc.txt \
--release=safe \
-Dtarget="${zig_target}" -Dcpu="${zig_cpu}" \
-Drelease-safe --prefix /usr install \
install \
${configure_args}
}