Documentation ¶
Index ¶
- type Toolchain
- func (tc *Toolchain) Asm(importpath, sourceDir, objectDir, trimpath string, asmFiles []string) ([]string, error)
- func (tc *Toolchain) CCompile(sourceDir, objectDir string, ccFiles, ccFlags []string) ([]string, error)
- func (tc *Toolchain) CGO(sourceDir string, objectDir string, cFlags []string, cgoFiles []string) ([]string, []string, error)
- func (tc *Toolchain) GoAsmCompile(importpath, importcfg, out, trimpath, embedCfg string, goFiles []string, ...) error
- func (tc *Toolchain) GoCompile(sourceDir, importpath, importcfg, out, trimpath, embedCfg string, ...) error
- func (tc *Toolchain) GoMinorVersion() (int, error)
- func (tc *Toolchain) Link(archive, out, importcfg string, ldFlags []string) error
- func (tc *Toolchain) Pack(dir, archive string, objFiles []string) error
- func (tc *Toolchain) PkgConfigCFlags(cfgs []string) ([]string, error)
- func (tc *Toolchain) PkgConfigLDFlags(cfgs []string) ([]string, error)
- func (tc *Toolchain) Symabis(importpath, sourceDir, objectDir string, asmFiles []string) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Toolchain ¶
func (*Toolchain) Asm ¶
func (tc *Toolchain) Asm(importpath, sourceDir, objectDir, trimpath string, asmFiles []string) ([]string, error)
Asm will compile the asm files and return the objects that are generated
func (*Toolchain) CCompile ¶
func (tc *Toolchain) CCompile(sourceDir, objectDir string, ccFiles, ccFlags []string) ([]string, error)
CCompile will compile C/CXX sources and return the object files that will be generated
func (*Toolchain) CGO ¶
func (tc *Toolchain) CGO(sourceDir string, objectDir string, cFlags []string, cgoFiles []string) ([]string, []string, error)
CGO invokes go tool cgo to generate cgo sources in the target's object directory
func (*Toolchain) GoAsmCompile ¶
func (tc *Toolchain) GoAsmCompile(importpath, importcfg, out, trimpath, embedCfg string, goFiles []string, asmH, symabys string) error
GoAsmCompile will compile the go sources linking to the the abi symbols generated from symabis()
func (*Toolchain) GoCompile ¶
func (tc *Toolchain) GoCompile(sourceDir, importpath, importcfg, out, trimpath, embedCfg string, goFiles []string) error
GoCompile will compile the go sources and the generated .cgo1.go sources for the CGO files (if any)
func (*Toolchain) GoMinorVersion ¶
func (*Toolchain) PkgConfigCFlags ¶
func (*Toolchain) PkgConfigLDFlags ¶
Click to show internal directories.
Click to hide internal directories.