authorgravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2020-10-18 21:12:54+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-22 17:44:23-04:00
log2ee79f149b3a16aca152f6aa0c5a7a8df35c06de
treec9617932bdce0051b816357ed66e235bbd8876c6
parente02655798fbd97a069ee8be38a6eceac18335a4d

std: reference more declarations in std.build


1 files changed, 7 insertions(+), 1 deletions(-)

lib/std/build.zig+7-1
...@@ -2787,6 +2787,12 @@ test "LibExeObjStep.addPackage" {...@@ -2787,6 +2787,12 @@ test "LibExeObjStep.addPackage" {
2787test "" {2787test "" {
2788 // The only purpose of this test is to get all these untested functions2788 // The only purpose of this test is to get all these untested functions
2789 // to be referenced to avoid regression so it is okay to skip some targets.2789 // to be referenced to avoid regression so it is okay to skip some targets.
2790 if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64)2790 if (comptime std.Target.current.cpu.arch.ptrBitWidth() == 64) {
2791 std.testing.refAllDecls(@This());2791 std.testing.refAllDecls(@This());
2792 std.testing.refAllDecls(Builder);
2793
2794 inline for (std.meta.declarations(@This())) |decl|
2795 if (comptime mem.endsWith(u8, decl.name, "Step"))
2796 std.testing.refAllDecls(decl.data.Type);
2797 }
2792}2798}