[Bug 277333] Mk/Features/lto.mk: passing -C lto=no breaks LTO_UNSAFE ports

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 Mar 2024 16:34:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277333

--- Comment #13 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Gleb Popov from comment #11)
> Since LTO is an off-by-default feature

Not in USES=cargo after ports 967022fd812c. The ports affected here explicitly
enable LTO via lto=true in Cargo.toml but define LTO_UNSAFE due to
incompatibility with CARGO_PROFILE_RELEASE_PANIC set by Mk/Features/lto.mk,
leading to -C lto=no causing desync between cargo and rustc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.