Skip to content

Commit

Permalink
rustc_target: Build sparc_unknown_linux_gnu with -mcpu=v9 and -m32
Browse files Browse the repository at this point in the history
The previously -mv8plus parameter is supported by GCC only, so let's
use something that the SPARC backend in LLVM supports as well.
  • Loading branch information
glaubitz committed Jun 24, 2024
1 parent 5e1da33 commit 827deaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn target() -> Target {
options: TargetOptions {
cpu: "v9".into(),
endian: Endian::Big,
late_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mv8plus"]),
late_link_args: TargetOptions::link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mcpu=v9", "-m32"]),
max_atomic_width: Some(32),
..base::linux_gnu::opts()
},
Expand Down

0 comments on commit 827deaf

Please sign in to comment.