mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
Added -no-entry-point flag and relevant check.
This commit is contained in:
+1
-1
@@ -4572,7 +4572,7 @@ void check_parsed_files(Checker *c) {
|
||||
|
||||
|
||||
TIME_SECTION("check entry point");
|
||||
if (build_context.build_mode == BuildMode_Executable) {
|
||||
if (build_context.build_mode == BuildMode_Executable && !build_context.no_entry_point) {
|
||||
Scope *s = c->info.init_scope;
|
||||
GB_ASSERT(s != nullptr);
|
||||
GB_ASSERT(s->flags&ScopeFlag_Init);
|
||||
|
||||
Reference in New Issue
Block a user