git: 3fc3ff568a4a - main - games/jumpy: unbreak build on i386

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 03 Sep 2023 11:00:29 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3fc3ff568a4a544c4571f452393de6b0bd5afe2d

commit 3fc3ff568a4a544c4571f452393de6b0bd5afe2d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-11 05:18:21 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-09-03 10:59:52 +0000

    games/jumpy: unbreak build on i386
    
    LLVM ERROR: out of memory
    Allocation failed
    
    (signal: 6, SIGABRT: process abort signal)
    
    Reported by:    pkg-fallout
---
 games/jumpy/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/games/jumpy/Makefile b/games/jumpy/Makefile
index d015552514de..ee7f585a62dc 100644
--- a/games/jumpy/Makefile
+++ b/games/jumpy/Makefile
@@ -26,6 +26,11 @@ PLIST_FILES=	bin/${PORTNAME}
 PLIST_FILES+=	"@comment bin/core" # not packaged in vendor binaries
 PORTDATA=	*
 
+.if ${MACHINE_ARCH} == i386
+# https://github.com/rust-lang/rust/issues/85598
+CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
 post-patch:
 # Search assets under PREFIX instead of current directory
 	@${REINPLACE_CMD} 's,assets",../${DATADIR_REL}/&,' \