Static methods

staticinlineaSanSupported(_goos:GoString, _goarch:GoString):Bool

ASanSupported reports whether goos/goarch supports the address sanitizer option.

staticinlinebroken(_goos:GoString, _goarch:GoString):Bool

Broken reportsr whether goos/goarch is considered a broken port. (See https://go.dev/wiki/PortingPolicy#broken-ports.)

staticinlinebuildModeSupported(_compiler:GoString, _buildmode:GoString, _goos:GoString, _goarch:GoString):Bool

BuildModeSupported reports whether goos/goarch supports the given build mode using the given compiler. There is a copy of this function in cmd/dist/test.go.

staticinlinecgoSupported(_goos:GoString, _goarch:GoString):Bool

CgoSupported reports whether goos/goarch supports cgo.

staticinlinedefaultPIE(_goos:GoString, _goarch:GoString, _isRace:Bool):Bool

DefaultPIE reports whether goos/goarch produces a PIE binary when using the "default" buildmode. On Windows this is affected by -race, so force the caller to pass that in to centralize that choice.

staticinlineexecutableHasDWARF(_goos:GoString, _goarch:GoString):Bool

ExecutableHasDWARF reports whether the linked executable includes DWARF symbols on goos/goarch.

staticinlinefirstClass(_goos:GoString, _goarch:GoString):Bool

FirstClass reports whether goos/goarch is considered a “first class” port. (See https://go.dev/wiki/PortingPolicy#first-class-ports.)

staticinlinefuzzInstrumented(_goos:GoString, _goarch:GoString):Bool

FuzzInstrumented reports whether fuzzing on goos/goarch uses coverage instrumentation. (FuzzInstrumented implies FuzzSupported.)

staticinlinefuzzSupported(_goos:GoString, _goarch:GoString):Bool

FuzzSupported reports whether goos/goarch supports fuzzing ('go test -fuzz=.').

staticinlineinternalLinkPIESupported(_goos:GoString, _goarch:GoString):Bool

staticinlinemSanSupported(_goos:GoString, _goarch:GoString):Bool

MSanSupported reports whether goos/goarch supports the memory sanitizer option.

staticinlinemustLinkExternal(_goos:GoString, _goarch:GoString, _withCgo:Bool):Bool

MustLinkExternal reports whether goos/goarch requires external linking with or without cgo dependencies.

staticinlineraceDetectorSupported(_goos:GoString, _goarch:GoString):Bool

RaceDetectorSupported reports whether goos/goarch supports the race detector. There is a copy of this function in cmd/dist/test.go. Race detector only supports 48-bit VMA on arm64. But it will always return true for arm64, because we don't have VMA size information during the compile time.