mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-04 17:54:39 +00:00
Remove entry point when compiled with no-entry-point as shared library
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user