zig

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

commit 2ee79f149b3a16aca152f6aa0c5a7a8df35c06de (tree)
parent e02655798fbd97a069ee8be38a6eceac18335a4d
Author: xackus <14938807+xackus@users.noreply.github.com>
Date:   Sun, 18 Oct 2020 21:12:54 +0200

std: reference more declarations in std.build

Diffstat:
Mlib/std/build.zig | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/std/build.zig b/lib/std/build.zig @@ -2787,6 +2787,12 @@ test "LibExeObjStep.addPackage" { test "" { // The only purpose of this test is to get all these untested functions // to be referenced to avoid regression so it is okay to skip some targets. - if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64) + if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64) { std.testing.refAllDecls(@This()); + std.testing.refAllDecls(Builder); + + inline for (std.meta.declarations(@This())) |decl| + if (comptime mem.endsWith(u8, decl.name, "Step")) + std.testing.refAllDecls(decl.data.Type); + } }