Remove entry point when compiled with no-entry-point as shared library

This commit is contained in:
gerigk
2024-03-20 23:18:08 +01:00
parent f39b34a8b7
commit 800014e40c

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();