Skip to content

Commit cf412d5

Browse files
authored
Merge pull request #88 from lightpanda-io/createModule
Swap out unnecessary addModule with createModule
2 parents 4caba1c + 047db54 commit cf412d5

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
@@ -27,7 +27,7 @@ pub fn build(b: *std.Build) !void {
2727
const root_path = LazyPath{ .cwd_relative = "." };
2828
const build_path = LazyPath{ .cwd_relative = "./v8/" };
2929

30-
const build_module = b.addModule("v8_build", .{
30+
const build_module = b.createModule(.{
3131
.root_source_file = b.path("src/main_build.zig"),
3232
.target = target,
3333
.optimize = optimize,
@@ -114,7 +114,7 @@ pub fn build(b: *std.Build) !void {
114114
}
115115

116116
{
117-
const test_module = b.addModule("test_v8", .{
117+
const test_module = b.createModule(.{
118118
.root_source_file = b.path("src/v8.zig"),
119119
.target = target,
120120
.optimize = optimize,

0 commit comments

Comments
 (0)