Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
Dir string
Env []string
Verbose bool
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
// contains filtered or unexported fields
}
Cmd represents a clang command with environment and configuration support.
func NewCompiler ¶
NewCompiler creates a compiler command with proper flag merging.
func (*Cmd) CheckLinkArgs ¶
CheckLinkArgs validates linking arguments by attempting a test compile.
type Config ¶
type Config struct {
CC string // Compiler to use (e.g., "clang", "clang++")
CCFLAGS []string // Compiler flags for C/C++ compilation
CFLAGS []string // C-specific flags
LDFLAGS []string // Linker flags
Linker string // Linker to use (e.g., "ld.lld", "avr-ld")
}
Config represents clang configuration parameters.