Skip to content

Commit 13a8eae

Browse files
dkegel-fastlydeadprogram
authored andcommitted
build: build Go SSA serially [issue 3895]
From #3915 (comment) According to Ayke, it slows down the build but seems to reliably fix #3895
1 parent 42da765 commit 13a8eae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/build.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
344344
}
345345
packageActionIDJobs[pkg.ImportPath] = packageActionIDJob
346346

347+
// Build the SSA for the given package.
348+
ssaPkg := program.Package(pkg.Pkg)
349+
ssaPkg.Build()
350+
347351
// Now create the job to actually build the package. It will exit early
348352
// if the package is already compiled.
349353
job := &compileJob{

0 commit comments

Comments
 (0)