-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Extracted from #14647.
Lines 149 to 160 in b4d58e9
} else if (mem.eql(u8, arg, "--maxrss")) { | |
const max_rss_text = nextArg(args, &arg_idx) orelse { | |
std.debug.print("Expected argument after --sysroot\n\n", .{}); | |
usageAndErr(builder, false, stderr_stream); | |
}; | |
// TODO: support shorthand such as "2GiB", "2GB", or "2G" | |
max_rss = std.fmt.parseInt(usize, max_rss_text, 10) catch |err| { | |
std.debug.print("invalid byte size: '{s}': {s}\n", .{ | |
max_rss_text, @errorName(err), | |
}); | |
process.exit(1); | |
}; |
Line 952 in b4d58e9
\\ --maxrss <bytes> Limit memory usage (default is to use available memory) |
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management