Skip to content

Commit 05ea698

Browse files
committed
improve GOOS=tamago test coverage
1 parent a86162c commit 05ea698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/debug.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// the value of [runtime.NumCPU]. If n < 1, it does not change the current setting.
1515
// This call will go away when the scheduler improves.
1616
func GOMAXPROCS(n int) int {
17-
if GOARCH == "wasm" && n > 1 {
17+
if (GOARCH == "wasm" || GOOS == "tamago") && n > 1 {
1818
n = 1 // WebAssembly has no threads yet, so only one CPU is possible.
1919
}
2020

0 commit comments

Comments
 (0)