git: 86a3dad19f7c - main - devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 03 Oct 2022 06:18:00 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=86a3dad19f7cf5f02d425b822c41d29cb099dd72

commit 86a3dad19f7cf5f02d425b822c41d29cb099dd72
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-10-03 06:17:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-10-03 06:17:54 +0000

    devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build.
    
    Reported by:    pkg-fallout
---
 devel/hs-haskell-language-server/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/devel/hs-haskell-language-server/Makefile b/devel/hs-haskell-language-server/Makefile
index cac1a0538446..fa2aaaf545f0 100644
--- a/devel/hs-haskell-language-server/Makefile
+++ b/devel/hs-haskell-language-server/Makefile
@@ -593,10 +593,17 @@ USE_CABAL+=		${${f}_USE_CABAL}
 .endfor
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64
+# compiler goes out of memory
+BUILD_ARGS+=	--disable-optimization
+.endif
+
 .if ${FLAVOR:U} != default
 post-install:
 	${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-wrapper
 	${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${GHC_VERSION}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>