Function runBuild [src]
Prototype
pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void
Parameters
b: *Build
Source
pub fn runBuild(b: *Build, build_zig: anytype) anyerror!void {
switch (@typeInfo(@typeInfo(@TypeOf(build_zig.build)).@"fn".return_type.?)) {
.void => build_zig.build(b),
.error_union => try build_zig.build(b),
else => @compileError("expected return type of build to be 'void' or '!void'"),
}
}