Let -no-entry-point work for Windows DLLs

Fixes #4660
This commit is contained in:
Feoramund
2025-06-10 08:54:28 -04:00
parent 611390ba27
commit 1fc390146f

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");
}