[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 15:49:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277333

--- Comment #10 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #6)
> some ports fail

Which ports on what release/architecture tuples? Your commits failed to
document this but here you have documented regressions that may justify backout
before 2024Q2 branches.

> If you have a better fix for such a case, patches welcome.

Why not consistently use CARGO_PROFILE_*_LTO for both default/WITH_LTO and
LTO_UNSAFE/WITHOUT_LTO ? Ports without USES=cargo likely don't respect
RUSTFLAGS unless passed via MAKE_ENV, anyway.

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