We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 812bb36 commit 12c8242Copy full SHA for 12c8242
1 file changed
build.zig
@@ -20,14 +20,16 @@ pub fn build(b: *std.Build) void {
20
21
// Tests
22
23
- const tests = b.addTest(.{ .root_module = b.createModule(.{
24
- .target = target,
25
- .optimize = optimize,
26
- .root_source_file = b.path("src/test.zig"),
27
- .imports = &.{
28
- .{ .name = "quickjs", .module = quickjs },
29
- },
30
- }) });
+ const tests = b.addTest(.{
+ .root_module = b.createModule(.{
+ .target = target,
+ .optimize = optimize,
+ .root_source_file = b.path("src/test.zig"),
+ }),
+ });
+
31
+ tests.root_module.addImport("quickjs", quickjs);
32
+ tests.linkLibC();
33
34
const test_runner = b.addRunArtifact(tests);
35
0 commit comments