summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2025-06-22 14:23:44 +0300
committerGleb Popov <arrowd@FreeBSD.org>2025-06-24 08:12:53 +0300
commitec48599208cce082ba95c3beb35279ba03f79b02 (patch)
treee291026b57fe9c7805956ff4799e2e81d5959bfb
parentx11/screen-message: Update to 0.29 (diff)
lang/ghc*: Completely stop depending on LLVM
- LLVM is needed only for arches that are missing the native codegen backend in GHC - Starting from GHC 9 both AArch64 and X86 are natively supported - Leave LLVM_VERSION and LLVM_BOOT_VERSION vars for documentational purpose PR: 287528
-rw-r--r--lang/ghc/Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index ce4fa4c9c728..c5c03dc93f3a 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -179,19 +179,9 @@ DISTFILES+= ghc-${BOOT_GHC_VERSION}-boot-${ARCH}-freebsd${EXTRACT_SUFX}:boot
DISTFILES+= hadrian-${GHC_VERSION}-boot.tar.gz:boot
.endif
-.if ${ARCH} == aarch64 || ${ARCH:Marmv*}
-# ghc-8.10.x on arm requires devel/llvm10
-# CONFIGURE_TARGET must to be the same as the llvm triple
+.if ${ARCH} == aarch64
CONFIGURE_TARGET= ${ARCH}-unknown-freebsd${"${ARCH:Maarch64}" != "":?:-gnueabihf}
CONFIGURE_ARGS+= --host=${CONFIGURE_TARGET}
-BUILD_DEPENDS+= llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
-RUN_DEPENDS+= llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
-
-# When GHC being compiled and GHC used for bootstrapping support different
-# LLVM versions, we have to pull in both. Luckily, this is relatively rare.
-. if ${BOOT_LLVM_VERSION} != ${LLVM_VERSION}
-BUILD_DEPENDS+= llc${BOOT_LLVM_VERSION}:devel/llvm${BOOT_LLVM_VERSION}
-. endif
.endif
post-patch: