Merge pull request #3304 from mailgerigk/master

Remove entry point when compiled with no-entry-point as shared library
This commit is contained in:
gingerBill
2024-03-21 15:19:38 +00:00
committed by GitHub
+2
View File
@@ -6320,6 +6320,8 @@ gb_internal void check_parsed_files(Checker *c) {
error(token, "Undefined entry point procedure 'main'");
}
} else if (build_context.build_mode == BuildMode_DynamicLibrary && build_context.no_entry_point) {
c->info.entry_point = nullptr;
}
thread_pool_wait();