From c5cf611516ea5587dbefcf70a2f35e2b8f7f70b5 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Wed, 19 Apr 2023 02:38:41 -0400 Subject: [PATCH] std: add missing windows libraries when running tests Thanks to @kcbanner for diagnosing this. --- test/tests.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index eef3c63508fd6e9991349596f56f542148d6ca33..39ae62789e3f81dbfb3b8d3867127813a89f14fb 100644 --- a/test/tests.zig +++ b/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); -- 2.54.0