| ... | @@ -998,7 +998,16 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node | ... | @@ -998,7 +998,16 @@ pub fn flushModule(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node |
| 998 | _ = compiler_rt_path; | 998 | _ = compiler_rt_path; |
| 999 | | 999 | |
| 1000 | // Parse input files | 1000 | // Parse input files |
| 1001 | for (self.base.options.objects) |obj| { | 1001 | var positionals = std.ArrayList(Compilation.LinkObject).init(gpa); |
| | 1002 | defer positionals.deinit(); |
| | 1003 | try positionals.ensureUnusedCapacity(self.base.options.objects.len); |
| | 1004 | positionals.appendSliceAssumeCapacity(self.base.options.objects); |
| | 1005 | |
| | 1006 | for (comp.c_object_table.keys()) |key| { |
| | 1007 | try positionals.append(.{ .path = key.status.success.object_path }); |
| | 1008 | } |
| | 1009 | |
| | 1010 | for (positionals.items) |obj| { |
| 1002 | const in_file = try std.fs.cwd().openFile(obj.path, .{}); | 1011 | const in_file = try std.fs.cwd().openFile(obj.path, .{}); |
| 1003 | defer in_file.close(); | 1012 | defer in_file.close(); |
| 1004 | | 1013 | |