build: separate compiler and libs
This commit is contained in:
14
compiler/cl/internal/libc/libc.go
Normal file
14
compiler/cl/internal/libc/libc.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package libc
|
||||
|
||||
import "C"
|
||||
import _ "unsafe"
|
||||
|
||||
const (
|
||||
LLGoPackage = "decl"
|
||||
)
|
||||
|
||||
//go:linkname Printf C.printf
|
||||
func Printf(format *int8, __llgo_va_list ...any)
|
||||
|
||||
//go:linkname Strlen C.strlen
|
||||
func Strlen(str *int8) C.int
|
||||
Reference in New Issue
Block a user