go2hx

manual

github

Module: stdgo.internal.platform

(view library index)

Overview

Index

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.

(view code)

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.)

(view code)

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.

(view code)

function cgoSupported

function cgoSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

CgoSupported reports whether goos/goarch supports cgo.

(view code)

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.

(view code)

function executableHasDWARF

function executableHasDWARF(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

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

(view code)

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.)

(view code)

function fuzzInstrumented

function fuzzInstrumented(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

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

(view code)

function fuzzSupported

function fuzzSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

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

(view code)

function internalLinkPIESupported

function internalLinkPIESupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

(view code)

function msanSupported

function msanSupported(_goos:stdgo.GoString, _goarch:stdgo.GoString):Bool

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

(view code)

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.

(view code)

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.

(view code)

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

(view code)

OSArch function string

function string():stdgo.GoString

(view code)