Skip to content

Commit f429a2f

Browse files
authored
Unrolled build for #143409
Rollup merge of #143409 - Gelbpunkt:xgot-mips64-musl, r=compiler-errors Enable xgot feature for mips64 musl targets This was missed in b65c2af, 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.
2 parents 014bd82 + a7eefc3 commit f429a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_target/src/spec/targets/mips64_unknown_linux_muslabi64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::spec::{Target, TargetMetadata, TargetOptions, base};
55
pub(crate) fn target() -> Target {
66
let mut base = base::linux_musl::opts();
77
base.cpu = "mips64r2".into();
8-
base.features = "+mips64r2".into();
8+
base.features = "+mips64r2,+xgot".into();
99
base.max_atomic_width = Some(64);
1010
Target {
1111
// LLVM doesn't recognize "muslabi64" yet.

compiler/rustc_target/src/spec/targets/mips64el_unknown_linux_muslabi64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::spec::{Target, TargetMetadata, TargetOptions, base};
33
pub(crate) fn target() -> Target {
44
let mut base = base::linux_musl::opts();
55
base.cpu = "mips64r2".into();
6-
base.features = "+mips64r2".into();
6+
base.features = "+mips64r2,+xgot".into();
77
base.max_atomic_width = Some(64);
88
// FIXME(compiler-team#422): musl targets should be dynamically linked by default.
99
base.crt_static_default = true;

0 commit comments

Comments
 (0)