diff options
| author | Jens Reidel <adrian@travitia.xyz> | 2025-07-04 07:04:46 +0200 |
|---|---|---|
| committer | Jens Reidel <adrian@travitia.xyz> | 2025-07-04 07:04:54 +0200 |
| commit | a7eefc3fc4c16786844841af511b09db832f6a01 (patch) | |
| tree | c5374b7748251d5b9cd9338d0af73a379bfb5ee2 | |
| parent | 837c5dd7de03aa97190593aef4e70d53e1bb574b (diff) | |
| download | rust-a7eefc3fc4c16786844841af511b09db832f6a01.tar.gz rust-a7eefc3fc4c16786844841af511b09db832f6a01.zip | |
Enable xgot feature for mips64 musl targets
This was missed in b65c2afdfd9aaee977302516c9ef177861abfe74, which only enabled it for the glibc targets. I didn't feel comfortable touching the OpenWRT target, whoever maintains that will probably want to take a look whether it is necessary there as well. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs b/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs index fd509503053..f95ce756354 100644 --- a/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs +++ b/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs @@ -5,7 +5,7 @@ use crate::spec::{Target, TargetMetadata, TargetOptions, base}; pub(crate) fn target() -> Target { let mut base = base::linux_musl::opts(); base.cpu = "mips64r2".into(); - base.features = "+mips64r2".into(); + base.features = "+mips64r2,+xgot".into(); base.max_atomic_width = Some(64); Target { // LLVM doesn't recognize "muslabi64" yet. diff --git a/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs b/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs index aa087b1a35a..d42e097b0fd 100644 --- a/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs +++ b/compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs @@ -3,7 +3,7 @@ use crate::spec::{Target, TargetMetadata, TargetOptions, base}; pub(crate) fn target() -> Target { let mut base = base::linux_musl::opts(); base.cpu = "mips64r2".into(); - base.features = "+mips64r2".into(); + base.features = "+mips64r2,+xgot".into(); base.max_atomic_width = Some(64); // FIXME(compiler-team#422): musl targets should be dynamically linked by default. base.crt_static_default = true; |
