cgo: full supports cgo preambles and auto compile c files
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user