commit c50fb583073ccae245fae9018e09ef0c2d2211c2 (tree)
parent 73b4cb6314690b179800a3959a5e94ae469fcc0b
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Wed, 16 Oct 2024 06:07:00 +0200
std.Target: Use v11 as the baseline CPU model for lanai.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
@@ -1858,13 +1858,14 @@ pub const Cpu = struct {
},
.csky => &csky.cpu.ck810, // gcc/clang do not have a generic csky model.
.hexagon => &hexagon.cpu.hexagonv60, // gcc/clang do not have a generic hexagon model.
+ .lanai => &lanai.cpu.v11, // clang does not have a generic lanai model.
+ .loongarch64 => &loongarch.cpu.loongarch64,
.riscv32 => &riscv.cpu.baseline_rv32,
.riscv64 => &riscv.cpu.baseline_rv64,
- .x86 => &x86.cpu.pentium4,
.nvptx, .nvptx64 => &nvptx.cpu.sm_20,
.s390x => &s390x.cpu.arch8, // gcc/clang do not have a generic s390x model.
.sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
- .loongarch64 => &loongarch.cpu.loongarch64,
+ .x86 => &x86.cpu.pentium4,
else => generic(arch),
};