mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
1 parent
e1c47d6fe8
commit
87bc97daef
12 files changed
+86
-57
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user