fix: link libc in test

This commit is contained in:
Nurul Huda (Apon) 2026-07-16 07:01:19 +06:00
parent e63cc5ba5a
commit 5b3cacdb3b
No known key found for this signature in database
GPG key ID: 5D3F1DE2855A2F79

View file

@ -57,6 +57,7 @@ pub fn build(b: *std.Build) !void {
.mode = .simple, .mode = .simple,
}, },
}); });
mod_tests.root_module.link_libc = target.result.os.tag == .freestanding;
test_step.dependOn(&b.addRunArtifact(mod_tests).step); test_step.dependOn(&b.addRunArtifact(mod_tests).step);
} }
} }