2024-04-13 14:53:09 +00:00
|
|
|
set rust crate lto to thin to not use fatlto for gkrust which fails sometimes
|
2024-02-03 19:09:29 +00:00
|
|
|
--- a/config/makefiles/rust.mk
|
|
|
|
+++ b/config/makefiles/rust.mk
|
2024-04-13 14:53:09 +00:00
|
|
|
@@ -92,7 +92,7 @@
|
2024-02-03 19:09:29 +00:00
|
|
|
# Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
|
|
|
|
ifndef MOZ_CODE_COVERAGE
|
|
|
|
ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
|
2024-04-13 14:53:09 +00:00
|
|
|
-cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
|
2024-02-03 19:09:29 +00:00
|
|
|
+cargo_rustc_flags += -Clto=thin
|
|
|
|
endif
|
|
|
|
# We need -Cembed-bitcode=yes for all crates when using -Clto.
|
|
|
|
RUSTFLAGS += -Cembed-bitcode=yes
|