| 1 | set rust crate lto to thin to not use fatlto for gkrust which fails sometimes
|
| 2 | |
| 3 | |
| 4 | @@ -92,7 +92,7 @@
|
| 5 | # Never enable when coverage is enabled to work around https://github.com/rust-lang/rust/issues/90045.
|
| 6 | ifndef MOZ_CODE_COVERAGE
|
| 7 | ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
|
| 8 | -cargo_rustc_flags += -Clto$(if $(filter full,$(MOZ_LTO_RUST_CROSS)),=fat)
|
| 9 | +cargo_rustc_flags += -Clto=thin
|
| 10 | endif
|
| 11 | # We need -Cembed-bitcode=yes for all crates when using -Clto.
|
| 12 | RUSTFLAGS += -Cembed-bitcode=yes
|