mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
common/build_style/zig-build.sh: update for zig 0.13
This commit is contained in:
parent
439cb0a5b1
commit
998c752385
1 changed files with 6 additions and 1 deletions
|
@ -29,10 +29,15 @@ do_build() {
|
||||||
# We use zig-out to avoid path conflicts as it is the default install
|
# We use zig-out to avoid path conflicts as it is the default install
|
||||||
# prefix used by the zig build system.
|
# prefix used by the zig build system.
|
||||||
DESTDIR="zig-out" zig build \
|
DESTDIR="zig-out" zig build \
|
||||||
|
-j"${XBPS_MAKEJOBS}" \
|
||||||
--sysroot "${XBPS_CROSS_BASE}" \
|
--sysroot "${XBPS_CROSS_BASE}" \
|
||||||
|
--search-prefix "${XBPS_CROSS_BASE}/usr" \
|
||||||
|
--prefix /usr \
|
||||||
|
--global-cache-dir /host/zig \
|
||||||
--libc xbps_zig_libc.txt \
|
--libc xbps_zig_libc.txt \
|
||||||
|
--release=safe \
|
||||||
-Dtarget="${zig_target}" -Dcpu="${zig_cpu}" \
|
-Dtarget="${zig_target}" -Dcpu="${zig_cpu}" \
|
||||||
-Drelease-safe --prefix /usr install \
|
install \
|
||||||
${configure_args}
|
${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue