Module: stdgo.internal.platform
Overview
Index
-
function asanSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function broken(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function cgoSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function defaultPIE(_goos:stdgo.GoString, _goarch:stdgo.GoString, _isRace:Bool):Bool
-
function executableHasDWARF(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function firstClass(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function fuzzInstrumented(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function fuzzSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function internalLinkPIESupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function msanSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function mustLinkExternal(_goos:stdgo.GoString, _goarch:stdgo.GoString, _withCgo:Bool):Bool
-
function raceDetectorSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
-
function new(?goos:stdgo.GoString, ?goarch:stdgo.GoString):Void
Variables
import stdgo.internal.platform.Platform
var _distInfo:stdgo.GoMap<stdgo.internal.platform.OSArch, stdgo.internal.platform.T_osArchInfo>
var list:stdgo.Slice<stdgo.internal.platform.OSArch>
List is the list of all valid GOOS/GOARCH combinations, including known-broken ports.
Functions
import stdgo.internal.platform.Platform
function asanSupported
function asanSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
ASanSupported reports whether goos/goarch supports the address sanitizer option.
function broken
function broken(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
Broken reportsr whether goos/goarch is considered a broken port. (See https://go.dev/wiki/PortingPolicy#broken-ports.)
function buildModeSupported
function buildModeSupported(_compiler:stdgo.GoString, _buildmode:stdgo.GoString, _goos:stdgo.GoString, _goarch:stdgo.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.
function cgoSupported
function cgoSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
CgoSupported reports whether goos/goarch supports cgo.
function defaultPIE
function defaultPIE(_goos:stdgo.GoString, _goarch:stdgo.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.
function executableHasDWARF
function executableHasDWARF(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
ExecutableHasDWARF reports whether the linked executable includes DWARF symbols on goos/goarch.
function firstClass
function firstClass(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
FirstClass reports whether goos/goarch is considered a “first class” port. (See https://go.dev/wiki/PortingPolicy#first-class-ports.)
function fuzzInstrumented
function fuzzInstrumented(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
FuzzInstrumented reports whether fuzzing on goos/goarch uses coverage instrumentation. (FuzzInstrumented implies FuzzSupported.)
function fuzzSupported
function fuzzSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
FuzzSupported reports whether goos/goarch supports fuzzing ('go test -fuzz=.').
function internalLinkPIESupported
function internalLinkPIESupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
function msanSupported
function msanSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool
MSanSupported reports whether goos/goarch supports the memory sanitizer option.
function mustLinkExternal
function mustLinkExternal(_goos:stdgo.GoString, _goarch:stdgo.GoString, _withCgo:Bool):Bool
MustLinkExternal reports whether goos/goarch requires external linking with or without cgo dependencies.
function raceDetectorSupported
function raceDetectorSupported(_goos:stdgo.GoString, _goarch:stdgo.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.
Classes
import stdgo.internal.platform.*
class OSArch
An OSArch is a pair of GOOS and GOARCH values indicating a platform.
var goarch:stdgo.GoString
var goos:stdgo.GoString
OSArch function new
function new(?goos:stdgo.GoString, ?goarch:stdgo.GoString):Void
OSArch function string
function string():stdgo.GoString