mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-22 13:29:01 +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)
|
sleep(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GOMAXPROCS(n int) int {
|
||||||
|
// Note: setting GOMAXPROCS is ignored.
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
func _panic(message interface{}) {
|
func _panic(message interface{}) {
|
||||||
printstring("panic: ")
|
printstring("panic: ")
|
||||||
printitf(message)
|
printitf(message)
|
||||||
|
|||||||
Reference in New Issue
Block a user