MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / needsSyscallPackage

Function needsSyscallPackage

loader/goroot.go:219–226  ·  view source on GitHub ↗

needsSyscallPackage returns whether the syscall package should be overridden with the TinyGo version. This is the case on some targets.

(buildTags []string)

Source from the content-addressed store, hash-verified

217// needsSyscallPackage returns whether the syscall package should be overridden
218// with the TinyGo version. This is the case on some targets.
219func 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.

Callers 2

getOriginalPathMethod · 0.85
GetCachedGorootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected