aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorF0x1fy <alecsanchez@avian-lang.org>2020-11-10 09:50:53 -0700
committerF0x1fy <alecsanchez@avian-lang.org>2020-11-10 09:50:53 -0700
commit301e1d2ff3954453213aefa271263cd2644849f1 (patch)
treeb41e09a89639040bc10a170db0cc5a476a93a3ee /src/checker.cpp
parentee3b3fe6a3424d84cda26b1cddc764694ac49e7a (diff)
Added -no-entry-point flag and relevant check.
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 5c93e12b6..ac324fffa 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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);