Skip to content

Commit 4171cd6

Browse files
authored
wuffs: simplify the build (ghostty-org#8299)
2 parents b52879b + 3cce5d2 commit 4171cd6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pkg/wuffs/build.zig

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ pub fn build(b: *std.Build) !void {
1313

1414
const unit_tests = b.addTest(.{
1515
.name = "test",
16-
.root_module = b.createModule(.{
17-
.root_source_file = b.path("src/main.zig"),
18-
.target = target,
19-
.optimize = optimize,
20-
}),
16+
.root_module = module,
2117
});
2218
unit_tests.linkLibC();
2319

@@ -34,12 +30,6 @@ pub fn build(b: *std.Build) !void {
3430
.file = wuffs_dep.path("release/c/wuffs-v0.4.c"),
3531
.flags = flags.items,
3632
});
37-
38-
unit_tests.addIncludePath(wuffs_dep.path("release/c"));
39-
unit_tests.addCSourceFile(.{
40-
.file = wuffs_dep.path("release/c/wuffs-v0.4.c"),
41-
.flags = flags.items,
42-
});
4333
}
4434

4535
if (b.lazyDependency("pixels", .{})) |pixels_dep| {

0 commit comments

Comments
 (0)