aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2020-11-10 17:47:02 +0000
committerGitHub <noreply@github.com>2020-11-10 17:47:02 +0000
commit27d066054605ac96c8ae7236aee2021342492046 (patch)
treed5adf70488aeb6686dd9d872d11dd6a750462322 /src/checker.cpp
parent49e140f4db1f9fffa541c4d58efa91b7128c4ff4 (diff)
parent0eba4b46b5e554f1df01b63084ac4e78abfe3117 (diff)
Merge pull request #779 from F0x1fy/master
Add flag -no-entry-point
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);