mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
Implement dummy GOMAXPROCS
This compiler targets single-core machines, GOMAXPROCS is thus fixed to 1.
This commit is contained in:
@@ -12,6 +12,11 @@ func Sleep(d Duration) {
|
||||
sleep(d)
|
||||
}
|
||||
|
||||
func GOMAXPROCS(n int) int {
|
||||
// Note: setting GOMAXPROCS is ignored.
|
||||
return 1
|
||||
}
|
||||
|
||||
func _panic(message interface{}) {
|
||||
printstring("panic: ")
|
||||
printitf(message)
|
||||
|
||||
Reference in New Issue
Block a user