mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std: add missing windows libraries when running tests
Thanks to @kcbanner for diagnosing this.
This commit is contained in:
parent
bf6fd9ae3f
commit
c5cf611516
1 changed files with 5 additions and 0 deletions
|
|
@ -1041,6 +1041,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
|
||||||
compile_c.subsystem = .Console;
|
compile_c.subsystem = .Console;
|
||||||
compile_c.linkSystemLibrary("kernel32");
|
compile_c.linkSystemLibrary("kernel32");
|
||||||
compile_c.linkSystemLibrary("ntdll");
|
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);
|
const run = b.addRunArtifact(compile_c);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue