mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
Compilation: add link objects to file system inputs
This commit is contained in:
committed by
Alex Rønne Petersen
parent
9ba89394df
commit
a8c74e0565
@@ -3013,6 +3013,13 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE
|
||||
try comp.appendFileSystemInput(try .fromUnresolved(arena, comp.dirs, &.{c_object.src.src_path}));
|
||||
}
|
||||
|
||||
for (comp.link_inputs) |input| if (input.path()) |path| {
|
||||
try comp.appendFileSystemInput(try .fromUnresolved(arena, comp.dirs, &.{
|
||||
path.root_dir.path orelse ".",
|
||||
path.sub_path,
|
||||
}));
|
||||
};
|
||||
|
||||
// For compiling Win32 resources, we rely on the cache hash system to avoid duplicating work.
|
||||
// Add a Job for each Win32 resource file.
|
||||
try comp.win32_resource_work_queue.ensureUnusedCapacity(gpa, comp.win32_resource_table.count());
|
||||
|
||||
Reference in New Issue
Block a user