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 › validateConfigureDependency Private Function validateConfigureDependency Doc Source Private Function std.Build.validateConfigureDependency
fn validateConfigureDependency (lazy_path : LazyPath ) void Params File Build.zig: 2658
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671 fn validateConfigureDependency (lazy_path : LazyPath ) void {
switch (lazy_path ) {
.src_path , .cwd_relative , .dependency => {}, // OK
.generated => @panic ("configure phase cannot depend on files generated during make phase" ),
.relative => |relative | switch (relative .base ) {
.cwd , .build_root , .local_cache , .global_cache , .zig_exe , .zig_lib => {}, // OK
.install_prefix ,
.install_lib ,
.install_bin ,
.install_include ,
=> @panic ("configure phase cannot depend on files installed during make phase" ),
},
}
}