Added -no-entry-point flag and relevant check.

This commit is contained in:
F0x1fy
2020-11-10 09:50:53 -07:00
parent ee3b3fe6a3
commit 301e1d2ff3
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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);