selfhost: migrate tool sources to directory packages
Build w6a and w6l from package-main directories and expose the wcc backend through a narrow package API so w6c and wwdump no longer import implementation files. Retarget the remaining load-bearing fixtures and example sources to directory packages; retain the one intentional flat compiler collision as an explicitly composed raw unit.
This commit is contained in:
@@ -361,7 +361,7 @@ main(void)
|
||||
{
|
||||
char inc[4096], cmd[16384];
|
||||
snprintf(inc, sizeof inc,
|
||||
"-I %s/lib -I %s/lib/ww -I %s/selfhost/cmd/wcc", cwd, cwd, cwd);
|
||||
"-I %s/lib -I %s/lib/ww -I %s/selfhost/cmd", cwd, cwd, cwd);
|
||||
char root[2048];
|
||||
snprintf(root, sizeof root, "%s/selfhost/cmd/w6c/main.ww", cwd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user