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:
parent
4aaa7c0361
commit
363ea6ae8a
1 changed files with 2 additions and 1 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'zig'
|
# Template file for 'zig'
|
||||||
pkgname=zig
|
pkgname=zig
|
||||||
version=0.10.1
|
version=0.10.1
|
||||||
revision=1
|
revision=2
|
||||||
archs="x86_64* aarch64*"
|
archs="x86_64* aarch64*"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
configure_args="-DZIG_TARGET_MCPU=baseline"
|
||||||
make_cmd=make
|
make_cmd=make
|
||||||
# we add xml2, zstd, zlib and ncurses
|
# we add xml2, zstd, zlib and ncurses
|
||||||
# because our lld is static-only and requires those to work
|
# because our lld is static-only and requires those to work
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue