Commit c5cf611516

Jacob Young <jacobly0@users.noreply.github.com>
2023-04-19 08:38:41
std: add missing windows libraries when running tests
Thanks to @kcbanner for diagnosing this.
1 parent bf6fd9a
Changed files (1)
test/tests.zig
@@ -1041,6 +1041,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
                 compile_c.subsystem = .Console;
                 compile_c.linkSystemLibrary("kernel32");
                 compile_c.linkSystemLibrary("ntdll");
+                if (mem.eql(u8, options.name, "std")) {
+                    compile_c.linkSystemLibrary("crypt32");
+                    compile_c.linkSystemLibrary("ws2_32");
+                    compile_c.linkSystemLibrary("ole32");
+                }
             }
 
             const run = b.addRunArtifact(compile_c);