cgo: full supports cgo preambles and auto compile c files

This commit is contained in:
Li Jie
2024-11-14 16:13:13 +08:00
parent 89b111edca
commit a64f4219e9
16 changed files with 588 additions and 53 deletions

View File

@@ -6,11 +6,6 @@ package main
*/
import "C"
// TODO(lijie): workaround for cgo pkg-config not working
const (
LLGoPackage = "link: $LLGO_LIB_PYTHON; $(pkg-config --libs python3-embed)"
)
func main() {
C.Py_Initialize()
defer C.Py_Finalize()