https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113
Bug ID: 108113 Summary: Rust and --enable-link-serialization=1 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rust Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org Target Milestone: --- Seems rust/Make-lang.in doesn't have link serialization support, I bet that must break --enable-link-serialization=1 builds with rust enabled. See r11-5142-gd326ebc94f3b2b0d962fb9e253564b39106a10da r11-5190-ga774a6a2fbeaf7cbcb7a7afe433418f2d740b45b commits what has been changed for other FEs. The first change introduced some stuff that the second one reverted, so what is needed in rust/Make-lang.in is basically rust.serial = rust1$(exeext) and making rust1$(exeext) depend on $(rust.prev) The generic code will ensure to fill in rust.prev to some other *.serial and set some other *.prev to rust.serial as needed.