Skip to content

Commit

Permalink
std.Target: Return the correct value for 32-bit sparc v9 in toElfMach…
Browse files Browse the repository at this point in the history
…ine().
  • Loading branch information
alexrp committed Aug 13, 2024
1 parent 9b1e580 commit 80f771d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/Target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ pub fn toElfMachine(target: Target) std.elf.EM {
.powerpc64, .powerpc64le => .PPC64,
.riscv32, .riscv64 => .RISCV,
.s390x => .S390,
.sparc => .SPARC, // TODO: Should be SPARC32PLUS when targeting 32-bit v9.
.sparc => if (Target.sparc.featureSetHas(target.cpu.features, .v9)) .SPARC32PLUS else .SPARC,
.sparc64 => .SPARCV9,
.spu_2 => .SPU_2,
.x86 => .@"386",
Expand Down

0 comments on commit 80f771d

Please sign in to comment.