WIP cores scheduler

This commit is contained in:
Ayke van Laethem
2025-01-13 17:31:34 +01:00
parent cce44b5ebb
commit 04242fd620
28 changed files with 737 additions and 74 deletions
+5
View File
@@ -99,6 +99,11 @@ func (c *Config) BuildTags() []string {
"math_big_pure_go", // to get math/big to work
"gc." + c.GC(), "scheduler." + c.Scheduler(), // used inside the runtime package
"serial." + c.Serial()}...) // used inside the machine package
switch c.Scheduler() {
case "threads", "cores":
default:
tags = append(tags, "tinygo.unicore")
}
for i := 1; i <= c.GoMinorVersion; i++ {
tags = append(tags, fmt.Sprintf("go1.%d", i))
}