mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
std.Target: Use mvp as the generic CPU model for wasm32/wasm64.
As discussed in #21818, generic is a poor baseline model because that model is a moving target in LLVM. Instead, use mvp, which has no features enabled.
This commit is contained in:
parent
e800ea0fdd
commit
206373ca61
@ -1958,7 +1958,7 @@ pub const Cpu = struct {
|
||||
.x86_64 => &x86.cpu.x86_64,
|
||||
.nvptx, .nvptx64 => &nvptx.cpu.sm_20,
|
||||
.ve => &ve.cpu.generic,
|
||||
.wasm32, .wasm64 => &wasm.cpu.generic,
|
||||
.wasm32, .wasm64 => &wasm.cpu.mvp,
|
||||
.xcore => &xcore.cpu.generic,
|
||||
.xtensa => &xtensa.cpu.generic,
|
||||
|
||||
@ -2012,6 +2012,7 @@ pub const Cpu = struct {
|
||||
else => generic(arch),
|
||||
},
|
||||
.xcore => &xcore.cpu.xs1b_generic,
|
||||
.wasm32, .wasm64 => &wasm.cpu.generic,
|
||||
|
||||
else => generic(arch),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user