mirror of
https://github.com/ziglang/zig.git
synced 2026-02-19 07:48:31 +00:00
std: Builder: account for null term considering response files
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fb61db1ee4
commit
9c1c4747f4
@ -2901,7 +2901,7 @@ pub const LibExeObjStep = struct {
|
||||
// pass that to zig, e.g. via 'zig build-lib @args.rsp'
|
||||
var args_length: usize = 0;
|
||||
for (zig_args.items) |arg| {
|
||||
args_length += arg.len;
|
||||
args_length += arg.len + 1; // +1 to account for null terminator
|
||||
}
|
||||
if (args_length >= 30 * 1024) {
|
||||
const args_dir = try fs.path.join(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user