enable armv7hl with -O0 (#1806116)

This commit is contained in:
Jens Petersen 2020-07-20 16:05:33 +08:00
parent b43fe26aeb
commit bbaf325555
1 changed files with 11 additions and 3 deletions

View File

@ -11,7 +11,7 @@
Name: %{pkg_name}
Version: 3.1.6
# can only be reset when all subpkgs bumped
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Haskell source code suggestions
License: BSD
@ -64,9 +64,10 @@ BuildRequires: ghc-unix-prof
# for ghc-lib-parser
BuildRequires: alex
BuildRequires: happy
# may require ghc-8.10 to build
# https://github.com/digital-asset/ghc-lib/issues/184 (s390x)
# ghc-lib crashes on armv7hl
ExcludeArch: armv7hl s390x
# https://bugzilla.redhat.com/show_bug.cgi?id=1806109
ExcludeArch: s390x
%description
HLint gives suggestions on how to improve your source code.
@ -139,6 +140,10 @@ This package provides the Haskell %{name} profiling library.
%build
%ifarch armv7hl
# https://bugzilla.redhat.com/show_bug.cgi?id=1806116
%define cabal_configure_options --ghc-options="-O0"
%endif
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_lib_build
@ -192,6 +197,9 @@ echo "%{_datadir}/%{ghclibparser}/" >> %{ghclibparser}/ghc-ghc-lib-parser.files
%changelog
* Mon Jul 20 2020 Jens Petersen <petersen@redhat.com> - 3.1.6-4
- enable armv7hl with -O0
* Thu Jul 16 2020 Jens Petersen <petersen@redhat.com> - 3.1.6-3
- update to 3.1.6