rename dwarf_unwind to dwarf and use dwarf flavour
This commit is contained in:
parent
a82189be91
commit
8d4b4ec6e9
24
ghc.spec
24
ghc.spec
@ -23,9 +23,10 @@
|
|||||||
%bcond_without perf_build
|
%bcond_without perf_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# to enable dwarf-unwind debug (only on intel archs)
|
# to enable dwarf info (only on intel archs): overrides perf
|
||||||
|
# default is off: bcond_with
|
||||||
%ifarch x86_64 i686
|
%ifarch x86_64 i686
|
||||||
%bcond_with dwarf_unwind
|
%bcond_with dwarf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# locked together since disabling haddock causes no manuals built
|
# locked together since disabling haddock causes no manuals built
|
||||||
@ -146,7 +147,7 @@ BuildRequires: llvm%{llvm_major}
|
|||||||
BuildRequires: llvm >= %{llvm_major}
|
BuildRequires: llvm >= %{llvm_major}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if %{with dwarf_unwind}
|
%if %{with dwarf}
|
||||||
BuildRequires: elfutils-devel
|
BuildRequires: elfutils-devel
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl
|
%ifarch armv7hl
|
||||||
@ -369,8 +370,12 @@ cat > mk/build.mk << EOF
|
|||||||
%ifarch %{ghc_llvm_archs}
|
%ifarch %{ghc_llvm_archs}
|
||||||
BuildFlavour = perf-llvm
|
BuildFlavour = perf-llvm
|
||||||
%else
|
%else
|
||||||
|
%if %{with dwarf}
|
||||||
|
BuildFlavour = dwarf
|
||||||
|
%else
|
||||||
BuildFlavour = perf
|
BuildFlavour = perf
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%ifarch %{ghc_llvm_archs}
|
%ifarch %{ghc_llvm_archs}
|
||||||
BuildFlavour = quick-llvm
|
BuildFlavour = quick-llvm
|
||||||
@ -379,10 +384,6 @@ BuildFlavour = quick
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
GhcLibWays = v dyn %{?with_ghc_prof:p}
|
GhcLibWays = v dyn %{?with_ghc_prof:p}
|
||||||
%if %{with dwarf_unwind}
|
|
||||||
GhcLibHcOpts += -g3
|
|
||||||
GhcRtsHcOpts += -g3
|
|
||||||
%endif
|
|
||||||
%if %{with haddock}
|
%if %{with haddock}
|
||||||
HADDOCK_DOCS = YES
|
HADDOCK_DOCS = YES
|
||||||
EXTRA_HADDOCK_OPTS += --hyperlinked-source --hoogle --quickjump
|
EXTRA_HADDOCK_OPTS += --hyperlinked-source --hoogle --quickjump
|
||||||
@ -398,11 +399,6 @@ BUILD_SPHINX_HTML = NO
|
|||||||
%endif
|
%endif
|
||||||
BUILD_SPHINX_PDF = NO
|
BUILD_SPHINX_PDF = NO
|
||||||
EOF
|
EOF
|
||||||
## for verbose build output
|
|
||||||
#GhcStage1HcOpts=-v4
|
|
||||||
## enable RTS debugging:
|
|
||||||
## (http://ghc.haskell.org/trac/ghc/wiki/Debugging/RuntimeSystem)
|
|
||||||
#EXTRA_HC_OPTS=-debug
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# for patch12
|
# for patch12
|
||||||
@ -430,7 +426,7 @@ export CC=%{_bindir}/gcc
|
|||||||
%ifarch %{ghc_unregisterized_arches}
|
%ifarch %{ghc_unregisterized_arches}
|
||||||
--enable-unregisterised \
|
--enable-unregisterised \
|
||||||
%endif
|
%endif
|
||||||
%{?with_dwarf_unwind:--enable-dwarf-unwind} \
|
%{?with_dwarf:--enable-dwarf-unwind} \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
# avoid "ghc: hGetContents: invalid argument (invalid byte sequence)"
|
# avoid "ghc: hGetContents: invalid argument (invalid byte sequence)"
|
||||||
@ -686,7 +682,7 @@ make test
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 10 2020 Jens Petersen <petersen@redhat.com>
|
* Tue Mar 10 2020 Jens Petersen <petersen@redhat.com>
|
||||||
- add bcond for dwarf-unwind debuginfo
|
- add bcond for dwarf info
|
||||||
|
|
||||||
* Mon Feb 10 2020 Jens Petersen <petersen@redhat.com> - 8.6.5-102
|
* Mon Feb 10 2020 Jens Petersen <petersen@redhat.com> - 8.6.5-102
|
||||||
- rebuild against ghc-rpm-macros fixed for subpackage prof deps
|
- rebuild against ghc-rpm-macros fixed for subpackage prof deps
|
||||||
|
Loading…
Reference in New Issue
Block a user