From 715984340b247a27469a3e789843aed3220dd748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 14 Apr 2025 21:02:09 +0200 Subject: [PATCH] compiler: MinGW-w64 import libs should not count towards any_dyn_libs. They are, themselves, static libraries even if the resulting artifact strictly speaking requires dynamic linking to the corresponding system DLLs to run. Note, though, that there's no libc-provided dynamic linker on Windows like on POSIX, so this isn't particularly problematic. This matches x86_64-w64-mingw32-gcc behavior. --- src/main.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 2605b089eb..3c02f8964c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4088,7 +4088,6 @@ fn createModule( color, ) catch |err| fatal("failed to resolve link inputs: {s}", .{@errorName(err)}); - if (create_module.windows_libs.count() != 0) create_module.opts.any_dyn_libs = true; if (!create_module.opts.any_dyn_libs) for (create_module.link_inputs.items) |item| switch (item) { .dso, .dso_exact => { create_module.opts.any_dyn_libs = true;