Compiling Rust with GCC: an update
Compiling Rust with GCC: an update
Posted Sep 12, 2022 22:12 UTC (Mon) by himi (subscriber, #340)In reply to: Compiling Rust with GCC: an update by mjg59
Parent article: Compiling Rust with GCC: an update
I'd have to actually check the bootstrap process for rust (it's probably been five years since I last tried), but I have a feeling you have a second step beyond just building rustc with mrustc, though that may be more of a verification step. mrustc doesn't have a lot of the memory safety features of rustc, and only implements the minimal features needed to compile rustc, so I don't think a compiler built by it will behave the same as the compiler built by rustc, even if it's the same version (i.e. mrustc building rustc 1.54 compared with rustc 1.54 building rustc 1.54).
It does still break (or dilute greatly) the chain of trust, but you'd need a more careful verification to make sure nothing hinky was going on.
