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.

make

InstallFile.make
pub fn make(
    install_file: *InstallFile,
    step_index: Configuration.Step.Index,
    maker: *Maker,
    progress_node: std.Progress.Node,
) Step.ExtendedMakeError!void

File

lib/compiler/Maker/Step/InstallFile.zig:9

Code

pub fn make(
    install_file: *InstallFile,
    step_index: Configuration.Step.Index,
    maker: *Maker,
    progress_node: std.Progress.Node,
) Step.ExtendedMakeError!void {
    _ = install_file;
    _ = progress_node;
    const arena = maker.graph.arena; // TODO don't leak into process arena
    const step = maker.stepByIndex(step_index);
    const conf = &maker.scanned_config.configuration;
    const conf_step = step_index.ptr(conf);
    const conf_if = conf_step.extended.get(conf.extra).install_file;

    try step.singleUnchangingWatchInput(maker, arena, conf_if.source.get(conf));
    const p = try maker.installLazyPathSub(arena, conf_if.source, conf_if.dest_dir, conf_if.dest_sub_path.slice(conf), step_index);
    step.result_cached = p == .fresh;
}