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
This commit is contained in:
Gleb Popov
2025-06-22 14:23:44 +03:00
parent 2f03d5d28f
commit ec48599208
+1 -11
View File
@@ -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: