From 87bc97daefc8b5d8b665ea2fb2b6c232b80344bc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 22 Mar 2017 11:26:30 -0400 Subject: unify main entry point regardless of whether linking libc closes #248 --- src/analyze.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index e6c95c58f6..1a0f0b8fe8 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2878,9 +2878,9 @@ ImportTableEntry *add_source_file(CodeGen *g, PackageTableEntry *package, if (is_pub) { if (buf_eql_str(proto_name, "main")) { - g->have_exported_main = true; + g->have_pub_main = true; } else if (buf_eql_str(proto_name, "panic")) { - g->have_exported_panic = true; + g->have_pub_panic = true; } } } -- cgit v1.2.3