mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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'");
|
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();
|
thread_pool_wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user