Merge pull request #5309 from Feoramund/fix-4660

Let `-no-entry-point` work for Windows DLLs
This commit is contained in:
Jeroen van Rijn
2025-06-10 15:22:45 +02:00
committed by GitHub
+3
View File
@@ -277,6 +277,9 @@ try_cross_linking:;
if (build_context.build_mode == BuildMode_DynamicLibrary) {
link_settings = gb_string_append_fmt(link_settings, " /DLL");
if (build_context.no_entry_point) {
link_settings = gb_string_append_fmt(link_settings, " /NOENTRY");
}
} else {
link_settings = gb_string_append_fmt(link_settings, " /ENTRY:mainCRTStartup");
}