Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163421406
D36696.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D36696.id.diff
View Options
diff --git a/Mk/Features/lto.mk b/Mk/Features/lto.mk
--- a/Mk/Features/lto.mk
+++ b/Mk/Features/lto.mk
@@ -8,10 +8,18 @@
LTO_Include_MAINTAINER= pkubaj@FreeBSD.org
. if !defined(LTO_UNSAFE)
+. if defined(_INCLUDE_USES_CARGO_MK)
+ CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO="true" \
+ CARGO_PROFILE_RELEASE_PANIC="abort" \
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
+. elif defined(_INCLUDE_USES_MESON_MK)
+ MESON_ARGS+= -Db_lto=true
+. else
# Overridable as a user may want to use -flto
-LTO_FLAGS?= -flto=thin
-CFLAGS+= ${LTO_FLAGS}
-CXXFLAGS+= ${LTO_FLAGS}
-LDFLAGS+= ${LTO_FLAGS}
+ LTO_FLAGS?= -flto=thin
+ CFLAGS+= ${LTO_FLAGS}
+ CXXFLAGS+= ${LTO_FLAGS}
+ LDFLAGS+= ${LTO_FLAGS}
+. endif
. endif
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 1:56 AM (2 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35424399
Default Alt Text
D36696.id.diff (735 B)
Attached To
Mode
D36696: Mk/Features/lto.mk: Use Cargo and Meson toggles
Attached
Detach File
Event Timeline
Log In to Comment