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

@@ -3,7 +3,7 @@ package main
import (
"unsafe"
"github.com/goplus/llgo/compiler/internal/abi"
"github.com/goplus/llgo/runtime/abi"
)
type T struct {

View File

@@ -3,7 +3,7 @@ package main
import (
"unsafe"
"github.com/goplus/llgo/compiler/internal/runtime"
"github.com/goplus/llgo/runtime/internal/runtime"
)
const (

View File

@@ -3,7 +3,7 @@ package main
import (
"unsafe"
"github.com/goplus/llgo/compiler/internal/runtime"
"github.com/goplus/llgo/runtime/internal/runtime"
)
const (

View File

@@ -3,7 +3,7 @@ package main
import (
"unsafe"
"github.com/goplus/llgo/compiler/internal/abi"
"github.com/goplus/llgo/runtime/abi"
)
type T string

View File

@@ -2,7 +2,7 @@ package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/compiler/internal/abi"
"github.com/goplus/llgo/runtime/abi"
)
func Basic(kind abi.Kind) *abi.Type {

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
}