mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
link/MachO: fix --verbose-link ensureCapacity bug
This commit is contained in:
parent
84d5cc31c5
commit
fed1c9c3ec
@ -687,10 +687,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void {
|
||||
try argv.append("zig");
|
||||
try argv.append("ld");
|
||||
|
||||
try argv.ensureCapacity(input_files.items.len);
|
||||
for (input_files.items) |f| {
|
||||
argv.appendAssumeCapacity(f);
|
||||
}
|
||||
try argv.appendSlice(input_files.items);
|
||||
|
||||
try argv.append("-o");
|
||||
try argv.append(full_out_path);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user