| ... | ... | @@ -1733,6 +1733,10 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1733 | 1733 | if (win32_resource_count > 0) { |
| 1734 | 1734 | dev.check(.win32_resource); |
| 1735 | 1735 | 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); |
| 1736 | 1740 | for (options.rc_source_files) |rc_source_file| { |
| 1737 | 1741 | const win32_resource = try gpa.create(Win32Resource); |
| 1738 | 1742 | errdefer gpa.destroy(win32_resource); |
| ... | ... | @@ -1743,7 +1747,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1743 | 1747 | }; |
| 1744 | 1748 | comp.win32_resource_table.putAssumeCapacityNoClobber(win32_resource, {}); |
| 1745 | 1749 | } |
| 1746 | | comp.remaining_prelink_tasks += @intCast(comp.win32_resource_table.count()); |
| 1747 | 1750 | |
| 1748 | 1751 | if (options.manifest_file) |manifest_path| { |
| 1749 | 1752 | const win32_resource = try gpa.create(Win32Resource); |
| ... | ... | @@ -1754,7 +1757,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1754 | 1757 | .src = .{ .manifest = manifest_path }, |
| 1755 | 1758 | }; |
| 1756 | 1759 | comp.win32_resource_table.putAssumeCapacityNoClobber(win32_resource, {}); |
| 1757 | | comp.remaining_prelink_tasks += 1; |
| 1758 | 1760 | } |
| 1759 | 1761 | } |
| 1760 | 1762 | |
| ... | ... | @@ -1935,6 +1937,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1935 | 1937 | try comp.link_task_queue.shared.append(gpa, .load_explicitly_provided); |
| 1936 | 1938 | comp.remaining_prelink_tasks += 1; |
| 1937 | 1939 | } |
| 1940 | log.debug("total prelink tasks: {d}", .{comp.remaining_prelink_tasks}); |
| 1938 | 1941 | |
| 1939 | 1942 | return comp; |
| 1940 | 1943 | } |