authorgravatar for stephen@hexops.comStephen Gutekanst <stephen@hexops.com> 2022-02-21 12:58:13-07:00
committergravatar for stephen@hexops.comStephen Gutekanst <stephen@hexops.com> 2022-02-21 12:58:13-07:00
log9c1c4747f46cbf2911d3383154acce41b3f532c4
tree66f652b29761f92567565333fe19a835fa8504e6
parentfb61db1ee40e08e939613dc8448ac619a05bf91d

std: Builder: account for null term considering response files

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/build.zig+1-1
...@@ -2901,7 +2901,7 @@ pub const LibExeObjStep = struct {...@@ -2901,7 +2901,7 @@ pub const LibExeObjStep = struct {
2901 // pass that to zig, e.g. via 'zig build-lib @args.rsp'2901 // pass that to zig, e.g. via 'zig build-lib @args.rsp'
2902 var args_length: usize = 0;2902 var args_length: usize = 0;
2903 for (zig_args.items) |arg| {2903 for (zig_args.items) |arg| {
2904 args_length += arg.len;2904 args_length += arg.len + 1; // +1 to account for null terminator
2905 }2905 }
2906 if (args_length >= 30 * 1024) {2906 if (args_length >= 30 * 1024) {
2907 const args_dir = try fs.path.join(2907 const args_dir = try fs.path.join(