[go-nuts] How to build dynamic library with gollvm?

2021-06-29 Thread Peng Deng
Hi all I want to build a dynamic go library with gollvm. How could I do this? Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...

[go-nuts] How to compile a go program which uses cgo to llvm IR?

2021-06-09 Thread Peng Deng
Hi, I have the following program package main /* #include static void SayHello(const char* s) { puts(s); } */ import "C" func main() { C.SayHello(C.CString("Hello, World\n")) } I want to compile this program to LLVM IR with gollvm, the compilation instruction is as follows: llvm-goc