toolchain

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersionFormat = errors.New("invalid version format")
	ErrInvalidVersionMajor  = errors.New("invalid major version component")
	ErrInvalidVersionMinor  = errors.New("invalid minor version component")
)

Functions

func ValidCompilerNames added in v0.3.0

func ValidCompilerNames() []string

Types

type Compiler

type Compiler string
const (
	CompilerUnknown Compiler = ""
	CompilerGCC     Compiler = "gcc"
	CompilerClang   Compiler = "clang"
	CompilerRustc   Compiler = "rustc"
)

func ParseCompiler added in v0.3.0

func ParseCompiler(s string) (Compiler, bool)

func (Compiler) String

func (c Compiler) String() string

type CompilerInfo

type CompilerInfo struct {
	BuildID   string
	Toolchain Toolchain
}

type LibC

type LibC string
const (
	LibCUnknown LibC = ""
	LibCGlibc   LibC = "glibc"
	LibCMusl    LibC = "musl"
)

func (LibC) String

func (l LibC) String() string

type Toolchain

type Toolchain struct {
	Compiler Compiler
	Version  Version
}

func ParseToolchain

func ParseToolchain(info string) Toolchain

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func ParseVersion

func ParseVersion(s string) (Version, error)

func (Version) IsAtLeast

func (v Version) IsAtLeast(required Version) bool

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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