CGo is needed for the rp2040 and for macOS (GOOS=darwin), without it these targets just won't work. And there really isn't a benefit from disabling CGo: we don't need any external linkers for example. This avoids a somewhat common issue of people having CGO_ENABLED=0 somewhere in their environment and not understanding why things don't work. See for example: https://github.com/tinygo-org/tinygo/issues/3450 |
||
|---|---|---|
| .. | ||
| errors.go | ||
| goroot.go | ||
| list.go | ||
| loader.go | ||
| loader_go122.go | ||
| ssa.go | ||