zig: target baseline cpu

Since zig 0.10.1 the cmake build system will produce a binary with the
equivalent of -march=native by default. To produce a binary portable
across cpu versions we must target the baseline cpu.
This commit is contained in:
Isaac Freund 2023-05-16 14:01:45 +02:00 committed by Andrew Benson
parent 4aaa7c0361
commit 363ea6ae8a

View file

@ -1,9 +1,10 @@
# Template file for 'zig'
pkgname=zig
version=0.10.1
revision=1
revision=2
archs="x86_64* aarch64*"
build_style=cmake
configure_args="-DZIG_TARGET_MCPU=baseline"
make_cmd=make
# we add xml2, zstd, zlib and ncurses
# because our lld is static-only and requires those to work