feat: add libc

This commit is contained in:
Haolan
2025-08-25 19:05:30 +08:00
parent ddc61adc63
commit 5587fd2885
11 changed files with 638 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ type Config struct {
GOARCH string `json:"goarch"`
// Compiler and linker configuration
Libc string `json:"libc"`
Linker string `json:"linker"`
LinkerScript string `json:"linkerscript"`
CFlags []string `json:"cflags"`

View File

@@ -134,6 +134,9 @@ func (l *Loader) mergeConfig(dst, src *Config) {
if src.GOARCH != "" {
dst.GOARCH = src.GOARCH
}
if src.Libc != "" {
dst.Libc = src.Libc
}
if src.Linker != "" {
dst.Linker = src.Linker
}