Skip to content

Instantly share code, notes, and snippets.

@wangjiezhe
Created August 6, 2024 04:02
Show Gist options
  • Save wangjiezhe/786d7da67d9fb2d1243fd17b68e59f1e to your computer and use it in GitHub Desktop.
Save wangjiezhe/786d7da67d9fb2d1243fd17b68e59f1e to your computer and use it in GitHub Desktop.
diff --git a/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_gnuabi64.rs b/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_gnuabi64.rs
index 515473fbabc..fa3c6875964 100644
--- a/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_gnuabi64.rs
+++ b/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_gnuabi64.rs
@@ -15,8 +15,8 @@ pub fn target() -> Target {
options: TargetOptions {
abi: "abi64".into(),
// NOTE(mips64r2) matches C toolchain
- cpu: "mips64r2".into(),
- features: "+mips64r2,+xgot".into(),
+ cpu: "mips3".into(),
+ features: "+mips3,+xgot".into(),
max_atomic_width: Some(64),
mcount: "_mcount".into(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment