Skip to content

Commit 0307af6

Browse files
committed
remove usage of deprecated build system APIs
1 parent 88c5b18 commit 0307af6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ pub fn build(b: *Build) void {
3939
}),
4040
});
4141
selftest.root_module.addCMacro("MBEDTLS_SELF_TEST", "");
42-
selftest.addCSourceFile(.{
42+
selftest.root_module.addCSourceFile(.{
4343
.file = mbedtls_dep.path("programs/test/selftest.c"),
4444
.flags = &.{},
4545
});
46-
selftest.linkLibrary(mbedtls);
46+
selftest.root_module.linkLibrary(mbedtls);
4747
b.getInstallStep().dependOn(&selftest.step);
4848

4949
const selftest_run = b.addRunArtifact(selftest);

0 commit comments

Comments
 (0)