diff options
author | Martin Stransky <stransky@redhat.com> | 2020-07-28 15:36:46 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2020-07-28 15:36:46 +0200 |
commit | 291d884885cb4085341346e584a700953a7d95e4 (patch) | |
tree | 8c743119f9a5e64fbf8d54f95eeb2ca93f19a1e9 /mozilla-1640982.patch | |
parent | Disable PGO (diff) | |
download | librewolf-fedora-ff-291d884885cb4085341346e584a700953a7d95e4.tar.gz librewolf-fedora-ff-291d884885cb4085341346e584a700953a7d95e4.tar.bz2 librewolf-fedora-ff-291d884885cb4085341346e584a700953a7d95e4.zip |
Enabled PGO, added fix for mozilla#1640982
Diffstat (limited to 'mozilla-1640982.patch')
-rw-r--r-- | mozilla-1640982.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mozilla-1640982.patch b/mozilla-1640982.patch new file mode 100644 index 0000000..b63ba3b --- /dev/null +++ b/mozilla-1640982.patch @@ -0,0 +1,16 @@ +diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk +--- a/config/makefiles/rust.mk ++++ b/config/makefiles/rust.mk +@@ -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 + |