Skip to content

Commit af97085

Browse files
committed
build: use TranslateC.createModule()
1 parent 96e6275 commit af97085

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build.zig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,8 @@ pub fn build(b: *Build) void {
8787
c_headers.addIncludePath(lib.getEmittedIncludeTree());
8888
c_headers.step.dependOn(&install_lib.step);
8989

90-
const ziglua_c = b.addModule("ziglua-c", .{
91-
.root_source_file = c_headers.getOutput(),
92-
.target = c_headers.target,
93-
.optimize = c_headers.optimize,
94-
.link_libc = c_headers.link_libc,
95-
});
90+
const ziglua_c = c_headers.createModule();
91+
b.modules.put("ziglua-c", ziglua_c) catch @panic("OOM");
9692

9793
zlua.addImport("c", ziglua_c);
9894
}

0 commit comments

Comments
 (0)