Skip to content

Commit

Permalink
dev-lang/ghc: bump maximum LLVM to 14
Browse files Browse the repository at this point in the history
Validated on arm64.

Closes: https://bugs.gentoo.org/876187
Signed-off-by: Matoro Mahri <[email protected]>
Closes: gentoo/gentoo#29366
Signed-off-by: Michał Górny <[email protected]>
Signed-off-by: hololeap <[email protected]>
  • Loading branch information
matoro authored and hololeap committed Feb 15, 2023
1 parent d29ade5 commit dd4b2d4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions dev-lang/ghc/files/ghc-9.0.2-llvm-14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
https://bugs.gentoo.org/876187

Bump max LLVM to 14. Validated on arm64.

--- a/configure.ac
+++ b/configure.ac
@@ -681,7 +681,7 @@ AC_SUBST(InstallNameToolCmd)
# versions of LLVM simultaneously, but that stopped working around
# 3.5/3.6 release of LLVM.
LlvmMinVersion=9 # inclusive
-LlvmMaxVersion=14 # not inclusive
+LlvmMaxVersion=15 # not inclusive
AC_SUBST([LlvmMinVersion])
AC_SUBST([LlvmMaxVersion])
sUPPORTED_LLVM_VERSION_MIN=$(echo \($LlvmMinVersion\) | sed 's/\./,/')
5 changes: 3 additions & 2 deletions dev-lang/ghc/ghc-9.0.2-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ IUSE="big-endian +doc elfutils ghcbootstrap ghcmakebinary +gmp llvm numa profile
IUSE+=" binary"
RESTRICT="!test? ( test )"

LLVM_MAX_SLOT="13"
LLVM_MAX_SLOT="14"
RDEPEND="
>=dev-lang/perl-5.6.1
dev-libs/gmp:0=
Expand All @@ -135,7 +135,7 @@ RDEPEND="
llvm? (
<sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=
|| (
sys-devel/llvm:13
sys-devel/llvm:14
)
)
"
Expand Down Expand Up @@ -584,6 +584,7 @@ src_prepare() {
eapply "${FILESDIR}"/${PN}-8.10.1-allow-cross-bootstrap.patch
eapply "${FILESDIR}"/${PN}-9.0.2-disable-unboxed-arrays.patch
eapply "${FILESDIR}"/${PN}-9.0.2-llvm-13.patch
eapply "${FILESDIR}"/${PN}-9.0.2-llvm-14.patch
eapply "${FILESDIR}"/latomic-subword
eapply "${WORKDIR}"/${P}-riscv64-llvm.patch
eapply "${FILESDIR}"/${PN}-9.0.2-fptools.patch # clang-16 workaround
Expand Down

0 comments on commit dd4b2d4

Please sign in to comment.