mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue