mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
windows: disable parallelism on Windows
This is an attempt to figure out why the Windows CI keeps crashing. It should be removed before the next release, by which point we should know whether this has helped or not.
This commit is contained in:
committed by
Ron Evans
parent
8babc47638
commit
192a55970f
@@ -1508,6 +1508,15 @@ func main() {
|
||||
defer pprof.StopCPUProfile()
|
||||
}
|
||||
|
||||
// Limit the number of threads to one.
|
||||
// This is an attempted workaround for the crashes we're seeing in CI on
|
||||
// Windows. If this change helps, it indicates there is a concurrency issue.
|
||||
// If it doesn't, then there is something else going on. Either way, this
|
||||
// should be removed once the test is done.
|
||||
if runtime.GOOS == "windows" {
|
||||
runtime.GOMAXPROCS(1)
|
||||
}
|
||||
|
||||
switch command {
|
||||
case "build":
|
||||
pkgName := "."
|
||||
|
||||
Reference in New Issue
Block a user