build: separate compiler and libs
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/goplus/llgo/c"
|
"github.com/goplus/llgo/c"
|
||||||
"github.com/goplus/llgo/c/clang"
|
"github.com/goplus/llgo/c/clang"
|
||||||
"github.com/goplus/llgo/chore/_xtool/llcppsymg/clangutils"
|
"github.com/goplus/llgo/compiler/chore/_xtool/llcppsymg/clangutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/goplus/llgo/internal/llgen"
|
"github.com/goplus/llgo/compiler/internal/llgen"
|
||||||
"github.com/goplus/mod"
|
"github.com/goplus/mod"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/goplus/llgo/internal/llgen"
|
"github.com/goplus/llgo/compiler/internal/llgen"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -29,8 +29,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/goplus/gogen"
|
"github.com/goplus/gogen"
|
||||||
"github.com/goplus/llgo/chore/llpyg/pysig"
|
"github.com/goplus/llgo/compiler/chore/llpyg/pysig"
|
||||||
"github.com/goplus/llgo/ssa"
|
"github.com/goplus/llgo/compiler/ssa"
|
||||||
)
|
)
|
||||||
|
|
||||||
type symbol struct {
|
type symbol struct {
|
||||||
@@ -73,9 +73,9 @@ func FuncWithAllTypeStructParam(s StructWithAllTypeFields) {
|
|||||||
// s.c128: complex128{real = 15, imag = 16}
|
// s.c128: complex128{real = 15, imag = 16}
|
||||||
// s.slice: []int{21, 22, 23}
|
// s.slice: []int{21, 22, 23}
|
||||||
// s.arr: [3]int{24, 25, 26}
|
// s.arr: [3]int{24, 25, 26}
|
||||||
// s.arr2: [3]github.com/goplus/llgo/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
// s.arr2: [3]github.com/goplus/llgo/compiler/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
||||||
// s.s: "hello"
|
// s.s: "hello"
|
||||||
// s.e: github.com/goplus/llgo/cl/_testdata/debug.E{i = 30}
|
// s.e: github.com/goplus/llgo/compiler/cl/_testdata/debug.E{i = 30}
|
||||||
// s.pad1: 100
|
// s.pad1: 100
|
||||||
// s.pad2: 200
|
// s.pad2: 200
|
||||||
s.i8 = '\b'
|
s.i8 = '\b'
|
||||||
@@ -128,7 +128,7 @@ func FuncWithAllTypeParams(
|
|||||||
// f64: 12
|
// f64: 12
|
||||||
// slice: []int{21, 22, 23}
|
// slice: []int{21, 22, 23}
|
||||||
// arr: [3]int{24, 25, 26}
|
// arr: [3]int{24, 25, 26}
|
||||||
// arr2: [3]github.com/goplus/llgo/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
// arr2: [3]github.com/goplus/llgo/compiler/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
||||||
// slice[0]: 21
|
// slice[0]: 21
|
||||||
// slice[1]: 22
|
// slice[1]: 22
|
||||||
// slice[2]: 23
|
// slice[2]: 23
|
||||||
@@ -138,7 +138,7 @@ func FuncWithAllTypeParams(
|
|||||||
// arr2[0].i: 27
|
// arr2[0].i: 27
|
||||||
// arr2[1].i: 28
|
// arr2[1].i: 28
|
||||||
// arr2[2].i: 29
|
// arr2[2].i: 29
|
||||||
// e: github.com/goplus/llgo/cl/_testdata/debug.E{i = 30}
|
// e: github.com/goplus/llgo/compiler/cl/_testdata/debug.E{i = 30}
|
||||||
|
|
||||||
// Expected(skip):
|
// Expected(skip):
|
||||||
// i8: '\b'
|
// i8: '\b'
|
||||||
@@ -207,9 +207,9 @@ func FuncWithAllTypeParams(
|
|||||||
// c64: complex64{real = 21, imag = 22}
|
// c64: complex64{real = 21, imag = 22}
|
||||||
// c128: complex128{real = 23, imag = 24}
|
// c128: complex128{real = 23, imag = 24}
|
||||||
// slice: []int{31, 32, 33}
|
// slice: []int{31, 32, 33}
|
||||||
// arr2: [3]github.com/goplus/llgo/cl/_testdata/debug.E{{i = 37}, {i = 38}, {i = 39}}
|
// arr2: [3]github.com/goplus/llgo/compiler/cl/_testdata/debug.E{{i = 37}, {i = 38}, {i = 39}}
|
||||||
// s: "world"
|
// s: "world"
|
||||||
// e: github.com/goplus/llgo/cl/_testdata/debug.E{i = 40}
|
// e: github.com/goplus/llgo/compiler/cl/_testdata/debug.E{i = 40}
|
||||||
|
|
||||||
// Expected(skip):
|
// Expected(skip):
|
||||||
// arr: [3]int{34, 35, 36}
|
// arr: [3]int{34, 35, 36}
|
||||||
@@ -512,9 +512,9 @@ func main() {
|
|||||||
// s.c128: complex128{real = 15, imag = 16}
|
// s.c128: complex128{real = 15, imag = 16}
|
||||||
// s.slice: []int{21, 22, 23}
|
// s.slice: []int{21, 22, 23}
|
||||||
// s.arr: [3]int{24, 25, 26}
|
// s.arr: [3]int{24, 25, 26}
|
||||||
// s.arr2: [3]github.com/goplus/llgo/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
// s.arr2: [3]github.com/goplus/llgo/compiler/cl/_testdata/debug.E{{i = 27}, {i = 28}, {i = 29}}
|
||||||
// s.s: "hello"
|
// s.s: "hello"
|
||||||
// s.e: github.com/goplus/llgo/cl/_testdata/debug.E{i = 30}
|
// s.e: github.com/goplus/llgo/compiler/cl/_testdata/debug.E{i = 30}
|
||||||
// s.pf.i16: 100
|
// s.pf.i16: 100
|
||||||
// *(s.pf).i16: 100
|
// *(s.pf).i16: 100
|
||||||
// *(s.pi): 100
|
// *(s.pi): 100
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/goplus/llgo/cl/internal/stdio"
|
import "github.com/goplus/llgo/compiler/cl/internal/stdio"
|
||||||
|
|
||||||
var hello = [...]int8{'H', 'e', 'l', 'l', 'o', '\n', 0}
|
var hello = [...]int8{'H', 'e', 'l', 'l', 'o', '\n', 0}
|
||||||
|
|
||||||
@@ -106,8 +106,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"github.com/goplus/llgo/cl/_testgo/cgofull/pymod1"
|
"github.com/goplus/llgo/compiler/cl/_testgo/cgofull/pymod1"
|
||||||
"github.com/goplus/llgo/cl/_testgo/cgofull/pymod2"
|
"github.com/goplus/llgo/compiler/cl/_testgo/cgofull/pymod2"
|
||||||
)
|
)
|
||||||
|
|
||||||
//export go_callback_not_use_in_go
|
//export go_callback_not_use_in_go
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user