authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-04-22 12:40:21+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-22 15:13:06+02:00
log0c54cb1c9ba7ddb515d9d3ec911d5b71064f6880
tree840dd4d47065f5559227bcc587085f4e4e5c33aa
parent1b55ca18ef4d55b3152b107e56358b2b4022a2be
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: add link objects to file system inputs


1 files changed, 7 insertions(+), 0 deletions(-)

src/Compilation.zig+7
...@@ -3018,6 +3018,13 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE...@@ -3018,6 +3018,13 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE
3018 try comp.appendFileSystemInput(try .fromUnresolved(arena, comp.dirs, &.{c_object.src.src_path}));3018 try comp.appendFileSystemInput(try .fromUnresolved(arena, comp.dirs, &.{c_object.src.src_path}));
3019 }3019 }
30203020
3021 for (comp.link_inputs) |input| if (input.path()) |path| {
3022 try comp.appendFileSystemInput(try .fromUnresolved(arena, comp.dirs, &.{
3023 path.root_dir.path orelse ".",
3024 path.sub_path,
3025 }));
3026 };
3027
3021 // For compiling Win32 resources, we rely on the cache hash system to avoid duplicating work.3028 // For compiling Win32 resources, we rely on the cache hash system to avoid duplicating work.
3022 // Add a Job for each Win32 resource file.3029 // Add a Job for each Win32 resource file.
3023 try comp.win32_resource_work_queue.ensureUnusedCapacity(gpa, comp.win32_resource_table.count());3030 try comp.win32_resource_work_queue.ensureUnusedCapacity(gpa, comp.win32_resource_table.count());