Skip to content

Commit

Permalink
Uses/cargo.mk: Fix enabling LTO
Browse files Browse the repository at this point in the history
PR:		277902
  • Loading branch information
arrowd committed Mar 23, 2024
1 parent af98160 commit 3c26c5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mk/Uses/cargo.mk
Expand Up @@ -139,8 +139,11 @@ CARGO_ENV+= \
CARGO_ENV+= RUST_BACKTRACE=1
. endif

. if !defined(_WITHOUT_LTO) && (!defined(WITHOUT_LTO_PORTS) || ${WITHOUT_LTO_PORTS:N${PKGORIGIN}})
_CARGO_MSG= "===> Additional optimization to port applied"
WITH_LTO= yes
_WITH_LTO= yes
.undef _WITHOUT_LTO
. endif

# Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
. if ${ARCH} == amd64 || ${ARCH} == i386
Expand Down

0 comments on commit 3c26c5a

Please sign in to comment.