add ghc_llvm_archs
This commit is contained in:
parent
e8d82ec703
commit
f77e76b10e
16
ghc.spec
16
ghc.spec
@ -16,6 +16,11 @@
|
|||||||
# to handle RCs
|
# to handle RCs
|
||||||
%global ghc_release %{version}
|
%global ghc_release %{version}
|
||||||
|
|
||||||
|
# 8.2 needs llvm-3.9
|
||||||
|
%global llvm_major 3.9
|
||||||
|
|
||||||
|
%global ghc_llvm_archs armv7hl aarch64
|
||||||
|
|
||||||
Name: ghc
|
Name: ghc
|
||||||
# ghc must be rebuilt after a version bump to avoid ABI change problems
|
# ghc must be rebuilt after a version bump to avoid ABI change problems
|
||||||
Version: 8.2.2
|
Version: 8.2.2
|
||||||
@ -53,9 +58,6 @@ Patch26: ghc-Debian-no-missing-haddock-file-warning.patch
|
|||||||
Patch27: ghc-Debian-reproducible-tmp-names.patch
|
Patch27: ghc-Debian-reproducible-tmp-names.patch
|
||||||
Patch28: ghc-Debian-x32-use-native-x86_64-insn.patch
|
Patch28: ghc-Debian-x32-use-native-x86_64-insn.patch
|
||||||
|
|
||||||
# 8.2 needs llvm-3.9
|
|
||||||
%global llvm_major 3.9
|
|
||||||
|
|
||||||
# fedora ghc has been bootstrapped on
|
# fedora ghc has been bootstrapped on
|
||||||
# %%{ix86} x86_64 ppc ppc64 armv7hl s390 s390x ppc64le aarch64
|
# %%{ix86} x86_64 ppc ppc64 armv7hl s390 s390x ppc64le aarch64
|
||||||
# and retired arches: alpha sparcv9 armv5tel
|
# and retired arches: alpha sparcv9 armv5tel
|
||||||
@ -86,7 +88,7 @@ BuildRequires: python3
|
|||||||
# for /usr/bin/sphinx-build
|
# for /usr/bin/sphinx-build
|
||||||
BuildRequires: python2-sphinx
|
BuildRequires: python2-sphinx
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl aarch64
|
%ifarch %{ghc_llvm_archs}
|
||||||
BuildRequires: llvm%{llvm_major}
|
BuildRequires: llvm%{llvm_major}
|
||||||
%endif
|
%endif
|
||||||
# patch5
|
# patch5
|
||||||
@ -143,7 +145,7 @@ Obsoletes: ghc-doc-cron < %{version}-%{release}
|
|||||||
# added in f28
|
# added in f28
|
||||||
Obsoletes: ghc-doc-index < %{version}-%{release}
|
Obsoletes: ghc-doc-index < %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
%ifarch armv7hl aarch64
|
%ifarch %{ghc_llvm_archs}
|
||||||
Requires: llvm%{llvm_major}
|
Requires: llvm%{llvm_major}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -286,13 +288,13 @@ fi
|
|||||||
# cf https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-lang/ghc
|
# cf https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-lang/ghc
|
||||||
cat > mk/build.mk << EOF
|
cat > mk/build.mk << EOF
|
||||||
%if %{with perf_build}
|
%if %{with perf_build}
|
||||||
%ifarch armv7hl aarch64
|
%ifarch %{ghc_llvm_archs}
|
||||||
BuildFlavour = perf-llvm
|
BuildFlavour = perf-llvm
|
||||||
%else
|
%else
|
||||||
BuildFlavour = perf
|
BuildFlavour = perf
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
%ifarch armv7hl aarch64
|
%ifarch %{ghc_llvm_archs}
|
||||||
BuildFlavour = quick-llvm
|
BuildFlavour = quick-llvm
|
||||||
%else
|
%else
|
||||||
BuildFlavour = quick
|
BuildFlavour = quick
|
||||||
|
Loading…
Reference in New Issue
Block a user