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 library itself.
Zig › std/ › Build/ › Step/ › TranslateC.zig › linkSystemLibrary
linkSystemLibrary
TranslateC.linkSystemLibrary
pub fn linkSystemLibrary (
translate_c : *TranslateC ,
name : []const u8 ,
options : std .Build .Module .LinkSystemLibraryOptions ,
) void
File
Code
pub fn linkSystemLibrary (
translate_c : *TranslateC ,
name : []const u8 ,
options : std .Build .Module .LinkSystemLibraryOptions ,
) void {
const graph = translate_c .step .owner .graph ;
const arena = graph .arena ;
translate_c .system_libs .append (arena , .{
.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" );
}