riscv64-no-lto.patch 506 B

12345678910111213141516171819
  1. --- a/config/makefiles/rust.mk
  2. +++ b/config/makefiles/rust.mk
  3. @@ -91,6 +91,7 @@ ifndef MOZ_LTO_RUST_CROSS
  4. ifndef rustflags_sancov
  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 riscv64,$(RUST_TARGET)))
  8. ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
  9. cargo_rustc_flags += -Clto
  10. endif
  11. @@ -101,6 +102,7 @@ endif
  12. endif
  13. endif
  14. endif
  15. +endif
  16. ifdef CARGO_INCREMENTAL
  17. export CARGO_INCREMENTAL