Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var BuildToolchain toolchain = noToolchain + var CmdBuild = &base.Command + var CmdInstall = &base.Command + var ExecCmd []string + var GccgoBin string + var GccgoName string + var VetExplicit bool + var VetFlags []string + var VetTool string + func AddBuildFlags(cmd *base.Command, mask BuildFlagMask) + func BuildInit() + func BuildInstallFunc(b *Builder, ctx context.Context, a *Action) (err error) + func CheckGOOSARCHPair(goos, goarch string) error + func FindExecCmd() []string + func InstallPackages(ctx context.Context, patterns []string, pkgs []*load.Package) + type Action struct + Args []string + Deps []*Action + Failed bool + Func func(*Builder, context.Context, *Action) error + IgnoreFail bool + Mode string + Objdir string + Package *load.Package + Target string + TestOutput *bytes.Buffer + TryCache func(*Builder, *Action) bool + VetxOnly bool + func (a *Action) BuildActionID() string + func (a *Action) BuildContentID() string + func (a *Action) BuildID() string + func (a *Action) BuiltTarget() string + type BuildFlagMask int + const DefaultBuildFlags + const OmitModCommonFlags + const OmitModFlag + const OmitVFlag + type BuildMode int + const ModeBuggyInstall + const ModeBuild + const ModeInstall + const ModeVetOnly + type Builder struct + IsCmdList bool + NeedCompiledGoFiles bool + NeedError bool + NeedExport bool + Print func(args ...any) (int, error) + WorkDir string + func NewBuilder(workDir string) *Builder + func (b *Builder) AutoAction(mode, depMode BuildMode, p *load.Package) *Action + func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, ldflags []string, err error) + func (b *Builder) CompileAction(mode, depMode BuildMode, p *load.Package) *Action + func (b *Builder) Do(ctx context.Context, root *Action) + func (b *Builder) GccCmd(incdir, workdir string) []string + func (b *Builder) GxxCmd(incdir, workdir string) []string + func (b *Builder) LinkAction(mode, depMode BuildMode, p *load.Package) *Action + func (b *Builder) Mkdir(dir string) error + func (b *Builder) NewObjdir() string + func (b *Builder) PkgconfigCmd() string + func (b *Builder) Showcmd(dir string, format string, args ...any) + func (b *Builder) Symlink(oldname, newname string) error + func (b *Builder) VetAction(mode, depMode BuildMode, p *load.Package) *Action