-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
492e4cf
commit 2de7267
Showing
35 changed files
with
97 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 17 additions & 2 deletions
19
main/thunderbird/patches/rust-lto-thin.patch → main/firefox/patches/rust-lto.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
set rust crate lto to thin to not use fatlto for gkrust which ooms on 32-bit | ||
set rust crate lto to thin to not use fatlto for gkrust which ooms on 32-bit. | ||
also a lot faster | ||
also no lto on riscv for now | ||
-- | ||
diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk | ||
index 524bc436fd..cdc8d6089c 100644 | ||
--- a/config/makefiles/rust.mk | ||
+++ b/config/makefiles/rust.mk | ||
@@ -94,7 +94,7 @@ | ||
@@ -91,8 +91,9 @@ ifndef MOZ_LTO_RUST_CROSS | ||
ifndef rustflags_sancov | ||
# Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045. | ||
ifndef MOZ_CODE_COVERAGE | ||
+ifeq (,$(findstring riscv64,$(RUST_TARGET))) | ||
ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))) | ||
-cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat) | ||
+cargo_rustc_flags += -Clto=thin | ||
endif | ||
# We need -Cembed-bitcode=yes for all crates when using -Clto. | ||
RUSTFLAGS += -Cembed-bitcode=yes | ||
@@ -101,6 +102,7 @@ endif | ||
endif | ||
endif | ||
endif | ||
+endif | ||
|
||
ifdef CARGO_INCREMENTAL | ||
export CARGO_INCREMENTAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.