| ... | @@ -855,9 +855,14 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -855,9 +855,14 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 855 | try comp.addBuildingGLibCJobs(); | 855 | try comp.addBuildingGLibCJobs(); |
| 856 | } | 856 | } |
| 857 | if (comp.wantBuildMuslFromSource()) { | 857 | if (comp.wantBuildMuslFromSource()) { |
| 858 | try comp.work_queue.write(&[_]Job{ | 858 | try comp.work_queue.ensureUnusedCapacity(5); |
| 859 | .{ .musl_crt_file = .crti_o }, | 859 | if (target_util.libc_needs_crti_crtn(comp.getTarget())) { |
| 860 | .{ .musl_crt_file = .crtn_o }, | 860 | comp.work_queue.writeAssumeCapacity(&[_]Job{ |
| | 861 | .{ .musl_crt_file = .crti_o }, |
| | 862 | .{ .musl_crt_file = .crtn_o }, |
| | 863 | }); |
| | 864 | } |
| | 865 | comp.work_queue.writeAssumeCapacity(&[_]Job{ |
| 861 | .{ .musl_crt_file = .crt1_o }, | 866 | .{ .musl_crt_file = .crt1_o }, |
| 862 | .{ .musl_crt_file = .scrt1_o }, | 867 | .{ .musl_crt_file = .scrt1_o }, |
| 863 | .{ .musl_crt_file = .libc_a }, | 868 | .{ .musl_crt_file = .libc_a }, |