Fix build_runner.zig
This commit is contained in:
@@ -60,7 +60,7 @@ fn processPackage(out_stream: anytype, pkg: Pkg) anyerror!void {
|
||||
}
|
||||
|
||||
fn runBuild(builder: *Builder) anyerror!void {
|
||||
switch (@typeInfo(@TypeOf(root.build).ReturnType)) {
|
||||
switch (@typeInfo(@typeInfo(@TypeOf(root.build)).Fn.return_type.?)) {
|
||||
.Void => root.build(builder),
|
||||
.ErrorUnion => try root.build(builder),
|
||||
else => @compileError("expected return type of build to be 'void' or '!void'"),
|
||||
|
||||
Reference in New Issue
Block a user