Set ghc_smp_mflags to -j1

This might be enough to prevent segfaults on riscv64 for now.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-06-23 21:30:33 +03:00
parent 94bc45401f
commit 71596b4763
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
3 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,7 @@
Name: ghc-rpm-macros
Version: 2.5.2
Release: 3.0.riscv64%{?dist}
Release: 3.1.riscv64%{?dist}
Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+
@ -203,6 +203,10 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
%changelog
* Fri Jun 23 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.5.2-3.1.riscv64
- Clean up
- Set ghc_smp_mflags to -j1 for now (riscv64)
* Fri Apr 14 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.5.2-3.0.riscv64
- Add modifications for riscv64

View File

@ -34,7 +34,7 @@ licensedirversion=%{?2:-%2}\
%define pkgname %{?1}%{!?1:%{pkg_name}}\
%define pkgver %{?2}%{!?2:%{version}}\
if [ -n dist/build/libHS%{pkgname}-%{pkgver}*.so ]; then\
%cabal haddock %{?ghc_smp_mflags} --html --hyperlink-source --hoogle %{?cabal_haddock_options}\
%cabal haddock --html --hyperlink-source --hoogle %{?cabal_haddock_options}\
fi\
%endif\
%{nil}

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