ww: implement package initialization

This commit is contained in:
2026-08-14 19:02:35 +09:00
parent 72e890d5aa
commit c6bec0914d
24 changed files with 5279 additions and 1009 deletions

View File

@@ -60,6 +60,9 @@ struct Cg {
* the bare-`main` carve-out: a dep's `fn main` must
* mangle on its path like any decl; only the root
* entry stays bare. */
const char *init_dispatch_symbol; /* package-mode entry hook; the
* root-owned dispatcher runs the complete reachable
* package-init schedule before source main/test main. */
};
/* cgen.c */