git: 57487937f313 - main - games/veloren-weekly: disable LTO on i386 after 6f656934f1aa

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 06 May 2023 23:09:14 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=57487937f313091ba223fd3fc3a2b5ca33d0b7be

commit 57487937f313091ba223fd3fc3a2b5ca33d0b7be
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-06 22:21:00 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-06 23:06:51 +0000

    games/veloren-weekly: disable LTO on i386 after 6f656934f1aa
    
    thread '<unnamed>fatal runtime error: Rust cannot catch foreign exceptions
    ' panicked at '/wrkdirs/usr/ports/lang/rust/work/rustc-1.69.0-src/compiler/rustc_codegen_ssa/src/back/write.rs:1534:21: worker thread panicked', compiler/rustc_middle/src/util/bug.rs:36:26
    
    (signal: 6, SIGABRT: process abort signal)
    
    Reported by:    pkg-fallout
---
 games/veloren-weekly/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index fa64b0967fda..d97a6a457ebf 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -38,6 +38,10 @@ PORTDATA=	*
 
 CONFLICTS_INSTALL=	${PORTNAME}
 
+.if ${MACHINE_ARCH} == i386
+# Fixes error "Rust cannot catch foreign exceptions"
+CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false
+.endif
 # Fixes error "Instruction does not dominate all uses!"
 LTO_UNSAFE=	yes