Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109890871
D36736.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
963 B
Referenced Files
None
Subscribers
None
D36736.diff
View Options
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -139,6 +139,11 @@
CARGO_ENV+= RUST_BACKTRACE=1
. endif
+. if !defined(LTO_UNSAFE) || (defined(LTO_DISABLE_CHECK) && ${ARCH} == powerpc64) || (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
RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}
@@ -295,6 +300,9 @@
# Check that the running kernel has COMPAT_FREEBSD11 required by lang/rust post-ino64
@${SETENV} CC="${CC}" OPSYS="${OPSYS}" OSVERSION="${OSVERSION}" WRKDIR="${WRKDIR}" \
${SH} ${SCRIPTSDIR}/rust-compat11-canary.sh
+. if defined(_CARGO_MSG)
+ @${ECHO_MSG} ${_CARGO_MSG}
+. endif
@${ECHO_MSG} "===> Cargo config:"
@${MKDIR} ${WRKDIR}/.cargo
@: > ${WRKDIR}/.cargo/config.toml
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 8:28 PM (15 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16600716
Default Alt Text
D36736.diff (963 B)
Attached To
Mode
D36736: Mk/Uses/cargo.mk: Make use of WITH_LTO by default
Attached
Detach File
Event Timeline
Log In to Comment