Skip to content

Commit e57bbb3

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 a194f42 commit e57bbb3

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
@@ -18,7 +18,7 @@ pub fn target() -> Target {
1818
endian: Endian::Big,
1919
late_link_args: TargetOptions::link_args(
2020
LinkerFlavor::Gnu(Cc::Yes, Lld::No),
21-
&["-mv8plus"],
21+
&["-mcpu=v9", "-m32"],
2222
),
2323
max_atomic_width: Some(32),
2424
..base::linux_gnu::opts()

0 commit comments

Comments
 (0)