From: Debian Rust Maintainers Date: Tue, 1 Dec 2020 19:57:48 +0000 (+0000) Subject: d-fix-mips64el-bootstrap X-Git-Tag: archive/raspbian/1.48.0+dfsg1-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c65a04659921306d1a955e52a33727a86f2e306;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 c263759025..714595c943 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -793,6 +793,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 = []