From: Debian Rust Maintainers Date: Sat, 29 Aug 2020 15:54:36 +0000 (+0100) Subject: d-fix-mips64el-bootstrap X-Git-Tag: archive/raspbian/1.46.0+dfsg1-1+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=42f58e75d492f6fdaceb5ebc58f08bff7ed33956;p=rustc.git d-fix-mips64el-bootstrap Bug: https://github.com/rust-lang/rust/issues/52108 =================================================================== Gbp-Pq: Name d-fix-mips64el-bootstrap.patch --- diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 07a2a787ff..822695c543 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -702,6 +702,8 @@ class RustBuild(object): # 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_triple()) target_features = []