zig-srpm-macros/macros.zig-srpm
Jan200101 bdf18e181b
make macro properly conditional
spec statements like %if are not valid macros and cannot be used here
checking the definition appears to be good enough in other macros
2026-01-05 00:44:00 +01:00

9 lines
294 B
Text

# zig_arches lists what arches Zig works on
# Zig depends on a C compiler (gcc) during bootstraping
# older versions of gcc fail to compile the transpiled code
# so we limit it to x86_64 on rhel
%zig_arches %{shrink: \
%{!?rhel:x86_64 aarch64 riscv64 %{mips64}} \
%{?rhel:x86_64} \
}