build: build Go SSA serially [issue 3895]
From https://github.com/tinygo-org/tinygo/pull/3915#issuecomment-1724405109 According to Ayke, it slows down the build but seems to reliably fix https://github.com/tinygo-org/tinygo/issues/3895
Этот коммит содержится в:
родитель
42da7654ec
коммит
13a8eae0d4
1 изменённых файлов: 4 добавлений и 0 удалений
|
@ -344,6 +344,10 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
|
||||||
}
|
}
|
||||||
packageActionIDJobs[pkg.ImportPath] = packageActionIDJob
|
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
|
// Now create the job to actually build the package. It will exit early
|
||||||
// if the package is already compiled.
|
// if the package is already compiled.
|
||||||
job := &compileJob{
|
job := &compileJob{
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче