diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-06-30 15:02:32 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2023-09-17 03:09:45 -0700 |
| commit | 2a56fe11756fc402a15f159d1c951000487ff3ad (patch) | |
| tree | 3bb901ba9031c525846183a9335a5805aa3321a0 /src/link/Coff | |
| parent | 8e35be0640998e1070cf892eaadc35fc71d64ead (diff) | |
| download | zig-2a56fe11756fc402a15f159d1c951000487ff3ad.tar.gz zig-2a56fe11756fc402a15f159d1c951000487ff3ad.zip | |
Add a .rc -> .res compiler to the Zig compiler
Diffstat (limited to 'src/link/Coff')
| -rw-r--r-- | src/link/Coff/lld.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/link/Coff/lld.zig b/src/link/Coff/lld.zig index c0f88704e5..38385ceedf 100644 --- a/src/link/Coff/lld.zig +++ b/src/link/Coff/lld.zig @@ -72,6 +72,9 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod for (comp.c_object_table.keys()) |key| { _ = try man.addFile(key.status.success.object_path, null); } + for (comp.win32_resource_table.keys()) |key| { + _ = try man.addFile(key.status.success.res_path, null); + } try man.addOptionalFile(module_obj_path); man.hash.addOptionalBytes(self.base.options.entry); man.hash.addOptional(self.base.options.stack_size_override); @@ -268,6 +271,10 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod try argv.append(key.status.success.object_path); } + for (comp.win32_resource_table.keys()) |key| { + try argv.append(key.status.success.res_path); + } + if (module_obj_path) |p| { try argv.append(p); } |
