Systems that don't have AVX2 or newer CPU instructions will crash
with SIGILL. Using baseline zig target should address this but
make zig slower everywhere for everyone.
PR: 269206
Differential D38284
lang/zig: force baseline instead of native compilation dch on Jan 30 2023, 8:29 PM. Authored by Tags None Referenced Files
Details
Systems that don't have AVX2 or newer CPU instructions will crash PR: 269206
Diff Detail
Event TimelineComment Actions According to https://github.com/ziglang/zig/blob/master/CMakeLists.txt#L115 ZIG_TARGET_MCPU also gets used for compiler switch -mcpu= so what you could possibly do is mapping it to ${CPUTYPE} (https://cgit.freebsd.org/src/tree/share/examples/etc/make.conf?h=releng/13.1#n56) if its undefined.
Comment Actions the --verbose addition allows seeing after the build, in the logs, what tuples were chosen.
|