Implement dummy GOMAXPROCS

This compiler targets single-core machines, GOMAXPROCS is thus fixed to
1.
This commit is contained in:
Ayke van Laethem
2018-08-18 20:06:59 +02:00
parent 8b6cb204cd
commit 29d601883b
+5
View File
@@ -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)