diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-08-01 17:43:09 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-03 09:52:14 -0700 |
| commit | a1e21ceec8ecb475f96c5e83ee9f8d59ceecc82d (patch) | |
| tree | 083646afc78a3ca0cc6d2e04fd4dc270d6f44a16 /src/Compilation.zig | |
| parent | a08cc7d2ae3bd6e90f8d26ac13f2e0652687dc30 (diff) | |
| download | zig-a1e21ceec8ecb475f96c5e83ee9f8d59ceecc82d.tar.gz zig-a1e21ceec8ecb475f96c5e83ee9f8d59ceecc82d.zip | |
frontend: fix linking to Windows DLLs as system libs
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index f966f1e17f..0c8b3c5248 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5618,6 +5618,11 @@ pub fn addLinkLib(comp: *Compilation, lib_name: []const u8) !void { // to queue up a work item to produce the DLL import library for this. const gop = try comp.bin_file.options.system_libs.getOrPut(comp.gpa, lib_name); if (!gop.found_existing and comp.getTarget().os.tag == .windows) { + gop.value_ptr.* = .{ + .needed = true, + .weak = false, + .path = undefined, + }; try comp.work_queue.writeItem(.{ .windows_import_lib = comp.bin_file.options.system_libs.count() - 1, }); |
