mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
expose to build system
This commit is contained in:
parent
caae40c216
commit
5de0636577
@ -221,6 +221,10 @@ generated_llvm_bc: ?*GeneratedFile,
|
|||||||
generated_llvm_ir: ?*GeneratedFile,
|
generated_llvm_ir: ?*GeneratedFile,
|
||||||
generated_h: ?*GeneratedFile,
|
generated_h: ?*GeneratedFile,
|
||||||
|
|
||||||
|
/// The maximum number of distinct errors within a compilation step
|
||||||
|
/// Defaults to `std.math.maxInt(u16)`
|
||||||
|
error_limit: ?u32 = null,
|
||||||
|
|
||||||
pub const ExpectedCompileErrors = union(enum) {
|
pub const ExpectedCompileErrors = union(enum) {
|
||||||
contains: []const u8,
|
contains: []const u8,
|
||||||
exact: []const []const u8,
|
exact: []const []const u8,
|
||||||
@ -2092,6 +2096,11 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.error_limit) |err_limit| try zig_args.appendSlice(&.{
|
||||||
|
"--error-limit",
|
||||||
|
b.fmt("{}", .{err_limit}),
|
||||||
|
});
|
||||||
|
|
||||||
try zig_args.append("--listen=-");
|
try zig_args.append("--listen=-");
|
||||||
|
|
||||||
// Windows has an argument length limit of 32,766 characters, macOS 262,144 and Linux
|
// Windows has an argument length limit of 32,766 characters, macOS 262,144 and Linux
|
||||||
|
Loading…
Reference in New Issue
Block a user