feat: support compiler-rt

This commit is contained in:
Haolan
2025-08-29 11:30:25 +08:00
parent f3ecce86ee
commit 4639ee13e7
11 changed files with 497 additions and 119 deletions

View File

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

View File

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