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:
parent
33b550f030
commit
1b286170da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user