std: Builder: account for null term considering response files
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user