From ecc0b8edd9b5b5e337afd680a8f8631f9cb0bfae Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 16 May 2023 14:01:45 +0200 Subject: [PATCH] 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. --- srcpkgs/zig/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/zig/template b/srcpkgs/zig/template index 9807f7ab206b..55b31e5573c4 100644 --- a/srcpkgs/zig/template +++ b/srcpkgs/zig/template @@ -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