aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-05-13 14:36:59 +0200
committerRon Evans <[email protected]>2023-05-16 21:47:24 +0200
commitaf76c807e27fa2d964b3b10cb2a07677554c9f3f (patch)
tree86dba05422e2d94dbc2ebb56ed959700f419f6ec
parentcdbd850f80863d06764945c545c5e6cd8433edb3 (diff)
downloadtinygo-af76c807e27fa2d964b3b10cb2a07677554c9f3f.tar.gz
tinygo-af76c807e27fa2d964b3b10cb2a07677554c9f3f.zip
windows: re-enable parallelism
This reverts https://github.com/tinygo-org/tinygo/pull/3525, because that change didn't seem to stop the CI failures we have been seeing. Instead, I've added thread support in https://github.com/tinygo-org/tinygo/pull/3130 which IIRC fixed most of the CI crashes. Re-enabling parallelism should improve the performance of TinyGo a bit on Windows.
-rw-r--r--main.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/main.go b/main.go
index a2c5611b7..ffa660d01 100644
--- a/main.go
+++ b/main.go
@@ -1547,15 +1547,6 @@ 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 := "."