Package: rustc / 1.46.0+dfsg1-1

d-fix-mips64el-bootstrap.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Bug: https://github.com/rust-lang/rust/issues/52108
Index: rust/src/bootstrap/bootstrap.py
===================================================================
--- rust.orig/src/bootstrap/bootstrap.py
+++ rust/src/bootstrap/bootstrap.py
@@ -681,6 +681,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 = []