added the static_mods table for adding externally added static modules
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-12-16 17:58:01 +09:00
parent d3b90da1e7
commit ca1cf488e4
14 changed files with 465 additions and 264 deletions

View File

@@ -301,13 +301,19 @@ func main() {
}
}
err = h.AddMod("go")
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: failed to builtin 'go' module - %s\n", err.Error())
goto oops
}
if (len(cfg.srcfiles) > 0) {
err = h.ParseFiles(cfg.srcfiles)
} else {
err = h.ParseText(cfg.srcstr)
}
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: failed to make hawk - %s\n", err.Error())
fmt.Fprintf(os.Stderr, "ERROR: failed to parse - %s\n", err.Error())
goto oops
}