diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-07 15:06:58 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-04-07 15:06:58 -0400 |
| commit | 4d290758bb3145f65840ad0ac244fc4388bde9e0 (patch) | |
| tree | 18d1c2db9c7cc86e458460d73c62e7d5d39bc066 /lib/std | |
| parent | b7f116a774ce64b39ddf9798e135aee76d03f44e (diff) | |
| download | zig-4d290758bb3145f65840ad0ac244fc4388bde9e0.tar.gz zig-4d290758bb3145f65840ad0ac244fc4388bde9e0.zip | |
fix compile errors in some std.Target functions
The `ve` architecture needed to be added to a couple switch statements.
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/target.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/target.zig b/lib/std/target.zig index f920845d0d..8388fda72a 100644 --- a/lib/std/target.zig +++ b/lib/std/target.zig @@ -698,6 +698,7 @@ pub const Target = struct { .bpfeb => ._BPF, .sparcv9 => ._SPARCV9, .s390x => ._S390, + .ve => ._NONE, }; } @@ -739,6 +740,7 @@ pub const Target = struct { .renderscript32, .renderscript64, .shave, + .ve, => .Little, .arc, @@ -1317,3 +1319,7 @@ pub const Target = struct { } } }; + +test "" { + std.meta.refAllDecls(Target.Cpu.Arch); +} |
