Commit 2ee79f149b

xackus <14938807+xackus@users.noreply.github.com>
2020-10-18 21:12:54
std: reference more declarations in std.build
1 parent e026557
Changed files (1)
lib
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);
+    }
 }