authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-15 19:59:53-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-15 19:59:53-08:00
loge4868693a53f6e26f74e584e054008e6d5c2a350
tree2fc84feb1a891c0bf31a289e625f314b9dda91b8
parent24bdb42a23828d71238370af5d16a2421bf3216f

Compilation: windows doesn't prelink yet


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

src/Compilation.zig+5-2
......@@ -1733,6 +1733,10 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
17331733 if (win32_resource_count > 0) {
17341734 dev.check(.win32_resource);
17351735 try comp.win32_resource_table.ensureTotalCapacity(gpa, win32_resource_count);
1736 // Add this after adding logic to updateWin32Resource to pass the
1737 // result into link.loadInput. loadInput integration is not implemented
1738 // for Windows linking logic yet.
1739 //comp.remaining_prelink_tasks += @intCast(win32_resource_count);
17361740 for (options.rc_source_files) |rc_source_file| {
17371741 const win32_resource = try gpa.create(Win32Resource);
17381742 errdefer gpa.destroy(win32_resource);
......@@ -1743,7 +1747,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
17431747 };
17441748 comp.win32_resource_table.putAssumeCapacityNoClobber(win32_resource, {});
17451749 }
1746 comp.remaining_prelink_tasks += @intCast(comp.win32_resource_table.count());
17471750
17481751 if (options.manifest_file) |manifest_path| {
17491752 const win32_resource = try gpa.create(Win32Resource);
......@@ -1754,7 +1757,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
17541757 .src = .{ .manifest = manifest_path },
17551758 };
17561759 comp.win32_resource_table.putAssumeCapacityNoClobber(win32_resource, {});
1757 comp.remaining_prelink_tasks += 1;
17581760 }
17591761 }
17601762
......@@ -1935,6 +1937,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
19351937 try comp.link_task_queue.shared.append(gpa, .load_explicitly_provided);
19361938 comp.remaining_prelink_tasks += 1;
19371939 }
1940 log.debug("total prelink tasks: {d}", .{comp.remaining_prelink_tasks});
19381941
19391942 return comp;
19401943}