compile

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileConfig

type CompileConfig struct {
	Groups       []CompileGroup
	ExportCFlags []string
}

CompileConfig represents compilation configuration

type CompileGroup

type CompileGroup struct {
	OutputFileName string
	Files          []string // List of source files to compile
	CFlags         []string // C compiler flags
	CCFlags        []string
	LDFlags        []string // Linker flags
}

func (CompileGroup) Compile

func (g CompileGroup) Compile(
	outputDir string, options CompileOptions,
) (err error)

Compile compiles all source files in the group into a static library archive If the archive already exists, compilation is skipped

func (CompileGroup) IsCompiled

func (g CompileGroup) IsCompiled(outputDir string) bool

IsCompiled checks if the compile group has already been compiled by verifying if the output archive file exists in the specified directory

type CompileOptions

type CompileOptions struct {
	CC      string // Compiler to use
	Linker  string
	CCFLAGS []string
	CFLAGS  []string
	LDFLAGS []string
}

type LibConfig

type LibConfig struct {
	Url            string
	Name           string // Library name (e.g., "picolibc", "musl", "glibc")
	Version        string
	ResourceSubDir string
}

func (LibConfig) String

func (cfg LibConfig) String() string

String returns a string representation of the library configuration in the format "name-version"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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