authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-03 01:57:30+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-03 02:02:04+02:00
log1926e8c679dcf2264cd8af9f5bb1a62b8938c41f
treec75379548389be176fdd29ccfff169ce9ad504b5
parent5a23bf4b271ab809b18966e31f521c2b47298448
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: change generic CPU model for sparc to v8

closes https://codeberg.org/ziglang/zig/issues/37058

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/Target.zig+1
...@@ -2071,6 +2071,7 @@ pub const Cpu = struct {...@@ -2071,6 +2071,7 @@ pub const Cpu = struct {
2071 .propeller => &propeller.cpu.p1,2071 .propeller => &propeller.cpu.p1,
2072 .riscv32, .riscv32be => &riscv.cpu.generic_rv32,2072 .riscv32, .riscv32be => &riscv.cpu.generic_rv32,
2073 .riscv64, .riscv64be => &riscv.cpu.generic_rv64,2073 .riscv64, .riscv64be => &riscv.cpu.generic_rv64,
2074 .sparc => &sparc.cpu.v8,
2074 .sparc64 => &sparc.cpu.v9, // SPARC can only be 64-bit from v9 and up.2075 .sparc64 => &sparc.cpu.v9, // SPARC can only be 64-bit from v9 and up.
2075 .wasm32, .wasm64 => &wasm.cpu.mvp,2076 .wasm32, .wasm64 => &wasm.cpu.mvp,
2076 .x86_16 => &x86.cpu.i86,2077 .x86_16 => &x86.cpu.i86,