| ... | ... | @@ -221,6 +221,10 @@ generated_llvm_bc: ?*GeneratedFile, |
| 221 | 221 | generated_llvm_ir: ?*GeneratedFile, |
| 222 | 222 | generated_h: ?*GeneratedFile, |
| 223 | 223 | |
| 224 | /// The maximum number of distinct errors within a compilation step |
| 225 | /// Defaults to `std.math.maxInt(u16)` |
| 226 | error_limit: ?u32 = null, |
| 227 | |
| 224 | 228 | pub const ExpectedCompileErrors = union(enum) { |
| 225 | 229 | contains: []const u8, |
| 226 | 230 | exact: []const []const u8, |
| ... | ... | @@ -2092,6 +2096,11 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 2092 | 2096 | }); |
| 2093 | 2097 | } |
| 2094 | 2098 | |
| 2099 | if (self.error_limit) |err_limit| try zig_args.appendSlice(&.{ |
| 2100 | "--error-limit", |
| 2101 | b.fmt("{}", .{err_limit}), |
| 2102 | }); |
| 2103 | |
| 2095 | 2104 | try zig_args.append("--listen=-"); |
| 2096 | 2105 | |
| 2097 | 2106 | // Windows has an argument length limit of 32,766 characters, macOS 262,144 and Linux |