pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module translate_c: *TranslateCname: []const u864
65
66
67
68
69
70
71pub fn addModule(translate_c: *TranslateC, name: []const u8) *std.Build.Module {
return setUpModule(translate_c, translate_c.step.owner.addModule(name, .{
.root_source_file = translate_c.getOutput(),
.target = translate_c.target,
.optimize = translate_c.optimize,
.link_libc = translate_c.link_libc,
}));
}
Creates a module from the translated source and adds it to the package's module set making it available to other packages which depend on this one.
createModulecan be used instead to create a private module.