From 33c4b71112f1b44a4fe85a1397920840b4b942a2 Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Sat, 27 Aug 2022 07:58:37 +0000 Subject: [PATCH] Don't build rust code with Clto to avoid out of memory errors. Gbp-Pq: Name dont-build-rust-code-with-clto-to-avoid-.patch --- config/makefiles/rust.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk index a243ee5f7f..9509002b4b 100644 --- a/config/makefiles/rust.mk +++ b/config/makefiles/rust.mk @@ -90,7 +90,7 @@ 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 gkrust_gtest,$(RUST_LIBRARY_FILE))) -cargo_rustc_flags += -Clto +#cargo_rustc_flags += -Clto endif # We need -Cembed-bitcode=yes for all crates when using -Clto. RUSTFLAGS += -Cembed-bitcode=yes -- 2.30.2