From 2ee79f149b3a16aca152f6aa0c5a7a8df35c06de Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Sun, 18 Oct 2020 21:12:54 +0200 Subject: [PATCH] std: reference more declarations in std.build --- lib/std/build.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/std/build.zig b/lib/std/build.zig index b84e9a0254..e88a1a42ba 100644 --- 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); + } }