1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Mk/Features/lto.mk: explicitly disable LTO for Rust when LTO_UNSAFE

Some ports enable LTO in Cargo.toml and need -C lto=no
being passed to disable it.
This commit is contained in:
Piotr Kubaj 2024-02-09 16:29:05 +01:00
parent 33b550f030
commit 1b286170da

View File

@ -27,5 +27,9 @@ LTO_Include_MAINTAINER= pkubaj@FreeBSD.org
CXXFLAGS+= ${LTO_FLAGS}
LDFLAGS+= ${LTO_FLAGS}
. endif
. else
. if defined(_INCLUDE_USES_CARGO_MK)
RUSTFLAGS+= -C lto=no
. endif
. endif
.endif