git: 33b550f03016 - main - Mk/Uses/cargo.mk: remove duplicate check for LTO, Mk/Features/lto.mk already does it

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:54 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33b550f03016604ec57f01ac376b7c2b4545f9ea

commit 33b550f03016604ec57f01ac376b7c2b4545f9ea
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-09 15:27:50 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:54 +0000

    Mk/Uses/cargo.mk: remove duplicate check for LTO, Mk/Features/lto.mk already does it
---
 Mk/Uses/cargo.mk | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index 3af4e4183922..728bfffa62f4 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -139,10 +139,8 @@ CARGO_ENV+= \
 CARGO_ENV+=	RUST_BACKTRACE=1
 .  endif
 
-.  if !defined(LTO_UNSAFE) || (defined(LTO_DISABLE_CHECK) && ${ARCH} == riscv64)
 _CARGO_MSG=	"===>   Additional optimization to port applied"
 WITH_LTO=	yes
-.  endif
 
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
 .  if ${ARCH} == amd64 || ${ARCH} == i386