compiler: build separation runtime with clite

This commit is contained in:
Li Jie
2025-01-07 22:16:31 +08:00
parent 1172e5bdce
commit 6170973b48
316 changed files with 71331 additions and 178 deletions

View File

@@ -28,6 +28,7 @@ import (
"golang.org/x/tools/go/ssa"
"github.com/goplus/llgo/compiler/internal/env"
llssa "github.com/goplus/llgo/compiler/ssa"
)
@@ -617,7 +618,7 @@ func pkgKindByPath(pkgPath string) int {
func replaceGoName(v string, pos int) string {
switch v[:pos] {
case "runtime":
return "github.com/goplus/llgo/compiler/internal/runtime" + v[pos:]
return env.LLGoRuntimePkg + "/internal/runtime" + v[pos:]
}
return v
}