needsSyscallPackage returns whether the syscall package should be overridden with the TinyGo version. This is the case on some targets.
(buildTags []string)
| 217 | // needsSyscallPackage returns whether the syscall package should be overridden |
| 218 | // with the TinyGo version. This is the case on some targets. |
| 219 | func needsSyscallPackage(buildTags []string) bool { |
| 220 | for _, tag := range buildTags { |
| 221 | if tag == "baremetal" || tag == "nintendoswitch" || tag == "tinygo.wasm" { |
| 222 | return true |
| 223 | } |
| 224 | } |
| 225 | return false |
| 226 | } |
| 227 | |
| 228 | // The boolean indicates whether to merge the subdirs. True means merge, false |
| 229 | // means use the TinyGo version. |
no outgoing calls
no test coverage detected