Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › Build › Module › linkSystemLibrary Public Function linkSystemLibrary Doc Source Public Function std.Build.Module.linkSystemLibrary
pub fn linkSystemLibrary (
m : *Module ,
name : []const u8 ,
options : LinkSystemLibraryOptions ,
) void Params File Build/Module.zig: 341
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369 pub fn linkSystemLibrary (
m : *Module ,
name : []const u8 ,
options : LinkSystemLibraryOptions ,
) void {
const graph = m .owner .graph ;
const arena = graph .arena ;
const target = m .requireKnownTarget ();
if (std .zig .target .isLibCLibName (target , name )) {
m .link_libc = true ;
return ;
}
if (std .zig .target .isLibCxxLibName (target , name )) {
m .link_libcpp = true ;
return ;
}
m .link_objects .append (arena , .{
.system_lib = .{
.name = graph .dupeString (name ),
.needed = options .needed ,
.weak = options .weak ,
.use_pkg_config = options .use_pkg_config ,
.preferred_link_mode = options .preferred_link_mode ,
.search_strategy = options .search_strategy ,
},
}) catch @panic ("OOM" );
}