build: build runtime local

This commit is contained in:
visualfc
2024-06-07 15:21:27 +08:00
parent 46899f042f
commit fe10ddc720
12 changed files with 37 additions and 87 deletions

View File

@@ -1,9 +1,5 @@
package main
import (
"github.com/goplus/llgo/internal/runtime/c"
)
func concat(args ...string) (ret string) {
for _, v := range args {
ret += v
@@ -17,5 +13,5 @@ func info(s string) string {
func main() {
result := concat("Hello", " ", "World")
c.Fprintf(c.Stderr, c.Str("Hi, %s\n"), c.AllocaCStr(result))
println(result)
}