Skip to content

Commit 827deaf

Browse files
committed
rustc_target: Build sparc_unknown_linux_gnu with -mcpu=v9 and -m32
The previously -mv8plus parameter is supported by GCC only, so let's use something that the SPARC backend in LLVM supports as well.
1 parent 5e1da33 commit 827deaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn target() -> Target {
1616
options: TargetOptions {
1717
cpu: "v9".into(),
1818
endian: Endian::Big,
19-
late_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mv8plus"]),
19+
late_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mcpu=v9", "-m32"]),
2020
max_atomic_width: Some(32),
2121
..base::linux_gnu::opts()
2222
},

0 commit comments

Comments
 (0)