tawasuyu

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1506Shell 186Rust 107Markdown 983639 Definiciones

⎇ main recipes/firefox-patches/rust-lto-thin.patch 21 líneas · 709 B Historia crudo

firefox 154.0 — la cabeza de la familia Gecko (receta, sin construir todavía) 428be5e8d · Sergio ·

1set rust crate lto to thin to not use fatlto for gkrust which fails sometimes
2
3additionally, disable lto on riscv64 altogether
4
5--- a/config/makefiles/rust.mk
6+++ b/config/makefiles/rust.mk
7@@ -91,11 +91,13 @@
8 ifndef rustflags_sancov
9 # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
10 ifndef MOZ_CODE_COVERAGE
11+ifeq (,$(findstring riscv64,$(RUST_TARGET)))
12 ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
13-cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
14+cargo_rustc_flags += -Clto=thin
15 endif
16 # We need -Cembed-bitcode=yes for all crates when using -Clto.
17 RUSTFLAGS += -Cembed-bitcode=yes
18+endif
19 endif
20 endif
21 endif