1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-28 08:02:25 +01:00
slackware-current/source/xap/mozilla-firefox/firefox.rust-1.45.diff
Patrick J Volkerding dae94cb773 Fri Jul 24 18:44:56 UTC 2020
ap/vim-8.2.1288-x86_64-1.txz:  Upgraded.
d/oprofile-1.4.0-x86_64-1.txz:  Upgraded.
xap/vim-gvim-8.2.1288-x86_64-1.txz:  Upgraded.
2020-07-25 08:59:54 +02:00

14 lines
572 B
Diff

--- ./config/makefiles/rust.mk.orig 2020-07-08 06:51:15.000000000 -0500
+++ ./config/makefiles/rust.mk 2020-07-24 12:23:31.769077708 -0500
@@ -61,7 +61,11 @@
# Enable link-time optimization for release builds, but not when linking
# gkrust_gtest.
ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
+# Pass -Clto for older versions of rust, and CARGO_PROFILE_RELEASE_LTO=true
+# for newer ones that support it. Combining the latter with -Clto works, so
+# set both everywhere.
cargo_rustc_flags += -Clto
+export CARGO_PROFILE_RELEASE_LTO=true
endif
endif
endif