From 7ac1ca0ae2a727329550eecf71814f08dccf0700 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 12 Jul 2024 20:25:57 +0200 Subject: [PATCH] builder: remove workaround for generics race condition This commit reverts commit 13a8eae0d. It appars that the race has been fixed by https://github.com/golang/tools/commit/db513b091504, which we now use because it fixes another race condition as well. See: https://github.com/tinygo-org/tinygo/issues/4206 --- builder/build.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builder/build.go b/builder/build.go index d99d640af..50ec04d9d 100644 --- a/builder/build.go +++ b/builder/build.go @@ -353,10 +353,6 @@ 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{