aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-04-19 02:38:41 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-04-21 16:36:11 -0400
commitc5cf611516ea5587dbefcf70a2f35e2b8f7f70b5 (patch)
tree6fc46c5746bb711067501806e2b5ced8d9fafdff /test/tests.zig
parentbf6fd9ae3f68f1c91e8776b69080221777225091 (diff)
downloadzig-c5cf611516ea5587dbefcf70a2f35e2b8f7f70b5.tar.gz
zig-c5cf611516ea5587dbefcf70a2f35e2b8f7f70b5.zip
std: add missing windows libraries when running tests
Thanks to @kcbanner for diagnosing this.
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tests.zig b/test/tests.zig
index eef3c63508..39ae62789e 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);