Skip to content

Commit

Permalink
bcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Sep 21, 2024
1 parent 453cd91 commit f4ca317
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ pub fn build(b: *Build) void {
mbedtls.installHeadersDirectory(mbedtls_dep.path("include/psa"), "psa", .{});
b.installArtifact(mbedtls);

if (target.result.os.tag == .windows) {
mbedtls.linkSystemLibrary("bcrypt");
}

const selftest = b.addExecutable(.{
.name = "selftest",
.target = target,
Expand All @@ -36,6 +40,7 @@ pub fn build(b: *Build) void {
.flags = &.{},
});
selftest.linkLibrary(mbedtls);
b.getInstallStep().dependOn(&selftest.step);

const selftest_run = b.addRunArtifact(selftest);
const test_step = b.step("test", "Run Tests");
Expand Down

0 comments on commit f4ca317

Please sign in to comment.