authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-19 02:38:41-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-21 16:36:11-04:00
logc5cf611516ea5587dbefcf70a2f35e2b8f7f70b5
tree6fc46c5746bb711067501806e2b5ced8d9fafdff
parentbf6fd9ae3f68f1c91e8776b69080221777225091

std: add missing windows libraries when running tests

Thanks to @kcbanner for diagnosing this.

1 files changed, 5 insertions(+), 0 deletions(-)

test/tests.zig+5
......@@ -1041,6 +1041,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
10411041 compile_c.subsystem = .Console;
10421042 compile_c.linkSystemLibrary("kernel32");
10431043 compile_c.linkSystemLibrary("ntdll");
1044 if (mem.eql(u8, options.name, "std")) {
1045 compile_c.linkSystemLibrary("crypt32");
1046 compile_c.linkSystemLibrary("ws2_32");
1047 compile_c.linkSystemLibrary("ole32");
1048 }
10441049 }
10451050
10461051 const run = b.addRunArtifact(compile_c);