override global %with_ghc_prof and %with_haddock
This commit is contained in:
parent
a15483db6e
commit
f92afecbee
12
ghc.spec
12
ghc.spec
@ -27,15 +27,16 @@
|
|||||||
%global ghc_compact_ver 0.1.0.0
|
%global ghc_compact_ver 0.1.0.0
|
||||||
%global hpc_ver 0.6.1.0
|
%global hpc_ver 0.6.1.0
|
||||||
|
|
||||||
|
%undefine with_ghc_prof
|
||||||
|
%undefine with_haddock
|
||||||
|
|
||||||
# build profiling libraries and haddock documentation
|
# build profiling libraries and haddock documentation
|
||||||
# perf production build (disable for quick build)
|
# perf production build (disable for quick build)
|
||||||
%if %{with prodbuild}
|
%if %{with prodbuild}
|
||||||
%bcond ghc_prof 1
|
%bcond ghc_prof 1
|
||||||
# https://gitlab.haskell.org/ghc/ghc/-/issues/19754
|
# https://gitlab.haskell.org/ghc/ghc/-/issues/19754
|
||||||
# https://github.com/haskell/haddock/issues/1384
|
# https://github.com/haskell/haddock/issues/1384
|
||||||
%ifarch armv7hl
|
%ifnarch armv7hl
|
||||||
%undefine with_haddock
|
|
||||||
%else
|
|
||||||
%bcond haddock 1
|
%bcond haddock 1
|
||||||
%endif
|
%endif
|
||||||
%if %{with hadrian}
|
%if %{with hadrian}
|
||||||
@ -43,8 +44,9 @@
|
|||||||
%endif
|
%endif
|
||||||
%bcond perf_build 1
|
%bcond perf_build 1
|
||||||
%else
|
%else
|
||||||
%undefine with_ghc_prof
|
# Quick build
|
||||||
%undefine with_haddock
|
%bcond ghc_prof 0
|
||||||
|
%bcond haddock 0
|
||||||
%if %{with hadrian}
|
%if %{with hadrian}
|
||||||
%bcond manual 0
|
%bcond manual 0
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user