Created
August 6, 2024 04:02
-
-
Save wangjiezhe/786d7da67d9fb2d1243fd17b68e59f1e to your computer and use it in GitHub Desktop.
compile rust for mips3, see https://github.com/rust-lang/rust/issues/88942
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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