zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4d290758bb3145f65840ad0ac244fc4388bde9e0 (tree)
parent b7f116a774ce64b39ddf9798e135aee76d03f44e
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue,  7 Apr 2020 15:06:58 -0400

fix compile errors in some std.Target functions

The `ve` architecture needed to be added to a couple switch statements.

Diffstat:
Mlib/std/target.zig | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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); +}