We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e6275 commit af97085Copy full SHA for af97085
build.zig
@@ -87,12 +87,8 @@ pub fn build(b: *Build) void {
87
c_headers.addIncludePath(lib.getEmittedIncludeTree());
88
c_headers.step.dependOn(&install_lib.step);
89
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
- });
+ const ziglua_c = c_headers.createModule();
+ b.modules.put("ziglua-c", ziglua_c) catch @panic("OOM");
96
97
zlua.addImport("c", ziglua_c);
98
}
0 commit comments