backport hadrian macro handling
This commit is contained in:
parent
d7c965e2be
commit
0f90ec3d22
4
ghc.spec
4
ghc.spec
|
@ -575,9 +575,9 @@ cd hadrian
|
|||
%ifarch %{ghc_llvm_archs}
|
||||
%global hadrian_llvm +llvm
|
||||
%endif
|
||||
%define hadrian_docs %{!?with_haddock:--docs=no-haddocks} %{!?with_manual:--docs=no-sphinx}%{?with_manual:--docs=no-sphinx-pdfs}
|
||||
%define hadrian_docs %{!?with_haddock:--docs=no-haddocks} --docs=%[%{?with_manual} ? "no-sphinx-pdfs" : "no-sphinx"]
|
||||
# quickest does not build shared libs
|
||||
%{hadrian} %{?_smp_mflags} --flavour=%{!?with_prodbuild:quick+no_profiled_libs}%{?with_prodbuild:perf%{!?with_ghc_prof:+no_profiled_libs}}%{?hadrian_llvm} %{hadrian_docs} binary-dist-dir
|
||||
%{hadrian} %{?_smp_mflags} --flavour=%[%{?with_prodbuild} ? "perf" : "quick"]%{!?with_ghc_prof:+no_profiled_libs}%{?hadrian_llvm} %{hadrian_docs} binary-dist-dir
|
||||
%else
|
||||
make %{?_smp_mflags}
|
||||
%endif
|
||||
|
|
Loading…
Reference in New Issue