istio: istio.io/istio/pkg/test/util/crosscompile Index | Files

package crosscompile

import "istio.io/istio/pkg/test/util/crosscompile"

Index

Package Files

crosscompile.go

Constants

const (
    GoosLinux   = "linux"
    GoarchAmd64 = "amd64"
)

func Do Uses

func Do(cfg Config) (string, error)

Do cross-compiles the given app for the target OS and ARCH and returns the path to the binary.

type Config Uses

type Config struct {
    GOOS    string
    GOARCH  string
    SrcRoot string
    SrcPath string
    OutDir  string
}

Config for a cross-compile operation.

func (Config) LinuxAmd64 Uses

func (c Config) LinuxAmd64() Config

LinuxAmd64 is a utility function that returns a copy of this config with GOOS="linux" and GOARCH="amd64".

Package crosscompile imports 5 packages (graph) and is imported by 1 packages. Updated 2019-08-06. Refresh now. Tools for package owners.