Bug: https://github.com/rust-lang/rust/issues/52108 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -868,6 +868,8 @@ # preserve existing RUSTFLAGS env.setdefault("RUSTFLAGS", "") env["RUSTFLAGS"] += " -Cdebuginfo=2" + if self.build_triple().startswith('mips'): + env["RUSTFLAGS"] += " -Ctarget-feature=+xgot" build_section = "target.{}".format(self.build) target_features = []