Changes for riscv64

These remove a ton of verbose warnings on riscv64 unregistered build.

RISCV might be unstable with -j higher than 1. This needs retesting.
Last time tested with GHC 9.2 + LLVM 12 and 13, not with the current GHC
9.4 + LLVM 14.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-11-20 19:33:49 +02:00
parent a8ecfed0e9
commit c2660c6ba0
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ fi\
%global _lto_cflags %{nil}\
%global __brp_strip_lto %{nil}\
CFLAGS="${CFLAGS:-%optflags}"\
%ifarch s390x\
%ifarch s390x riscv64\
%if %[v"%{ghc_version}" < v"9.2"]\
# -Wunused-label is extremely noisy\
CFLAGS="$(echo ${CFLAGS:-%optflags} | sed -e 's/-Wall //' -e 's/-Werror=format-security //')"\

View File

@ -8,4 +8,4 @@
%with_haddock 1
# %%{?_smp_ncpus_max:--jobs=%%{?_smp_ncpus_max}}
%ghc_smp_mflags %{?_smp_mflags}
%ghc_smp_mflags -j1