endian: Endian::Big,
// NOTE(mips64r2) matches C toolchain
cpu: "mips64r2".to_string(),
- features: "+mips64r2".to_string(),
+ features: "+mips64r2,+xgot".to_string(),
max_atomic_width: Some(64),
mcount: "_mcount".to_string(),
abi: "abi64".to_string(),
// NOTE(mips64r2) matches C toolchain
cpu: "mips64r2".to_string(),
- features: "+mips64r2".to_string(),
+ features: "+mips64r2,+xgot".to_string(),
max_atomic_width: Some(64),
mcount: "_mcount".to_string(),
# preserve existing RUSTFLAGS
env.setdefault("RUSTFLAGS", "")
+ if self.build_triple().startswith('mips'):
+ env["RUSTFLAGS"] += " -Ctarget-feature=+xgot"
build_section = "target.{}".format(self.build)
target_features = []
if self.get_toml("crt-static", build_section) == "true":
+// ignore-test
// revisions: mips32 mips64
// assembly-output: emit-asm
//[mips32] compile-flags: --target mips-unknown-linux-gnu