Some popular applications like ghostty, river, ncdu and linuxwave are written in zig, and cpu feature based optimizations for zig applications should be designated in build.zig.
Look at AUR (en) - ghostty-git-zen3 for optimization examples.
Some popular applications like ghostty, river, ncdu and linuxwave are written in zig, and cpu feature based optimizations for zig applications should be designated in build.zig.
Look at AUR (en) - ghostty-git-zen3 for optimization examples.
While that may be beneficial, the current way to do it seems very tedious and not very viable to do in repositories. Ideally zig adds a similar functionality to CFLAGS (ZFLAGS?). That way we can add it to makepkg.conf
Mhm, is not cpu-baseline=znver4 for example enough?
The PKGBUILD looks like not to be needed