build

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendNativeBuildEnv

func AppendNativeBuildEnv(env []string) []string

this ensure we do not build cross-platform while building native binary

func BuildGoBinray added in v1.1.4

func BuildGoBinray(goroot string, flags []string, outputName string) (string, error)

func BuildGoDebugBinary added in v1.1.4

func BuildGoDebugBinary(goroot string) (string, error)

debug

func BuildGoToolCompileDebugBinary added in v1.1.4

func BuildGoToolCompileDebugBinary(goroot string) (string, error)

func BuildNativeBinary added in v1.1.3

func BuildNativeBinary(goroot string, dir string, flags []string, outputDir string, outputName string, arg string) (string, error)

func BuildToolBinray added in v1.1.4

func BuildToolBinray(goroot string, flags []string, arg string, outputName string) (string, error)

func EnvForNative added in v1.1.3

func EnvForNative(env []string, goroot string) []string

see https://github.com/xhd2015/xgo/issues/320 the GOEXPERIMENT,GOOS and GOARCH could affect building process. we make a fresh env

func GetToolPath

func GetToolPath(goroot string) (string, error)

$GOROOT/pkg/tool/linux_amd64

func MakeGorootEnv

func MakeGorootEnv(env []string, goroot string) []string

MakeGorootEnv makes a new env with GOROOT and PATH set

func RebuildGoBinary added in v1.1.4

func RebuildGoBinary(goroot string) error

func RebuildGoToolCompile added in v1.1.4

func RebuildGoToolCompile(goroot string) error

func RebuildGoToolCover added in v1.1.4

func RebuildGoToolCover(goroot string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL