feat: support libc version

This commit is contained in:
Haolan
2025-09-04 19:08:48 +08:00
parent b1d95bb73c
commit 95bd495d7b
10 changed files with 503 additions and 135 deletions

View File

@@ -95,9 +95,17 @@ func (g CompileGroup) Compile(
// CompileConfig represents compilation configuration
type CompileConfig struct {
Groups []CompileGroup
ExportCFlags []string
}
type LibConfig struct {
Url string
Name string // compile name (e.g., "picolibc", "musl", "glibc")
Groups []CompileGroup
Version string
ArchiveSrcDir string
LibcCFlags []string
}
func (cfg LibConfig) String() string {
return fmt.Sprintf("%s-%s", cfg.Name, cfg.Version)
}