llvm

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// CrosscompileClangPath is the relative path from LLGO_ROOT to the clang installation
	CrosscompileClangPath = "crosscompile/clang"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

Env represents an LLVM installation.

func New

func New(llvmConfigBin string) *Env

New creates a new Env instance.

func (*Env) BinDir added in v0.8.10

func (e *Env) BinDir() string

BinDir returns the directory containing LLVM executables. An empty string means LLVM executables are assumed to be in PATH.

func (*Env) Clang added in v0.8.10

func (e *Env) Clang() *clang.Cmd

Clang returns a new clang.Cmd instance.

func (*Env) InstallNameTool added in v0.9.2

func (e *Env) InstallNameTool() *install_name_tool.Cmd
func (e *Env) Link() *llvmlink.Cmd

Link returns a new llvmlink.Cmd instance.

func (*Env) Nm

func (e *Env) Nm() *nm.Cmd

Nm returns a new nm.Cmd instance.

func (*Env) Readelf added in v0.11.7

func (e *Env) Readelf(args ...string) (*exec.Cmd, error)

Readelf returns a command to execute llvm-readelf with given arguments.

Jump to

Keyboard shortcuts

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