Skip to content

Commit

Permalink
build: build Go SSA serially [issue 3895]
Browse files Browse the repository at this point in the history
From
#3915 (comment)

According to Ayke, it slows down the build but seems to reliably fix #3895
  • Loading branch information
dkegel-fastly authored and deadprogram committed Sep 20, 2023
1 parent 42da765 commit 13a8eae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
}
packageActionIDJobs[pkg.ImportPath] = packageActionIDJob

// Build the SSA for the given package.
ssaPkg := program.Package(pkg.Pkg)
ssaPkg.Build()

// Now create the job to actually build the package. It will exit early
// if the package is already compiled.
job := &compileJob{
Expand Down

0 comments on commit 13a8eae

Please sign in to comment.