diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2024-04-25 00:39:37 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2024-04-25 00:50:02 +0000 |
commit | ef0538735a5064d289ca9a7ab8fd1f9a2a0f912f (patch) | |
tree | 48ddc58183fb56de142ab7484dc157e75bff641c | |
parent | 4e2b1920d3237c30781063b0c3350da8213d29b3 (diff) |
deskutils/health: unbreak build on i386
fatal runtime error: Rust cannot catch foreign exceptions
thread 'coordinator' panicked at compiler/rustc_middle/src/util/bug.rs:36:26:
/wrkdirs/usr/ports/lang/rust/work/rustc-1.77.0-src/compiler/rustc_codegen_ssa/src/back/write.rs:1588:29: worker thread panicked
(signal: 6, SIGABRT: process abort signal)
Reported by: pkg-fallout
(cherry picked from commit b74febdcf13b52b2e168a75c49549229fa7f283a)
-rw-r--r-- | deskutils/health/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deskutils/health/Makefile b/deskutils/health/Makefile index a0c570797eba..79c59e3239e2 100644 --- a/deskutils/health/Makefile +++ b/deskutils/health/Makefile @@ -27,6 +27,12 @@ CARGO_INSTALL= no CARGO_TEST= no GLIB_SCHEMAS= dev.Cogitri.Health.gschema.xml +.if ${MACHINE_ARCH} == i386 +# https://github.com/rust-lang/rust/issues/85598 +LTO_UNSAFE= yes +CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false +.endif + post-patch: # Make each cargo subcommand very verbose # Add explicit <triple> subdir for --target from USES=cargo |