Documentation ¶
Index ¶
- func ASanSupported(goos, goarch string) bool
- func BuildModeSupported(compiler, buildmode, goos, goarch string) bool
- func FuzzInstrumented(goos, goarch string) bool
- func FuzzSupported(goos, goarch string) bool
- func InternalLinkPIESupported(goos, goarch string) bool
- func MSanSupported(goos, goarch string) bool
- func MustLinkExternal(goos, goarch string) bool
- func MustLinkExternalGo121(goos, goarch string, withCgo bool) bool
- func RaceDetectorSupported(goos, goarch string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASanSupported ¶
ASanSupported reports whether goos/goarch supports the address sanitizer option. There is a copy of this function in misc/cgo/testsanitizers/cc_test.go.
func BuildModeSupported ¶
BuildModeSupported reports whether goos/goarch supports the given build mode using the given compiler.
func FuzzInstrumented ¶
FuzzInstrumented reports whether fuzzing on goos/goarch uses coverage instrumentation. (FuzzInstrumented implies FuzzSupported.)
func FuzzSupported ¶
FuzzSupported reports whether goos/goarch supports fuzzing ('go test -fuzz=.').
func MSanSupported ¶
MSanSupported reports whether goos/goarch supports the memory sanitizer option. There is a copy of this function in misc/cgo/testsanitizers/cc_test.go.
func MustLinkExternal ¶
MustLinkExternal reports whether goos/goarch requires external linking.
func MustLinkExternalGo121 ¶
MustLinkExternalGo121 reports whether goos/goarch requires external linking, with or without cgo dependencies. [This version back-ported from Go 1.21 as part of a test].
func RaceDetectorSupported ¶
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.
Types ¶
This section is empty.