Re: [go-nuts] building go 1.20.1 to C for use in Nodejs

2023-02-23 Thread Ian Lance Taylor
On Thu, Feb 23, 2023 at 1:18 PM David Choi (jsoneaday) wrote: > > Hi I'm trying to build my project as C so I can call it from Nodejs. But when > I run the command "go build -buildmode=c-shared -o keyring.so ." I get a so > file but no h C header. > > I am running this on Mac M1. I read somethin

[go-nuts] building go 1.20.1 to C for use in Nodejs

2023-02-23 Thread David Choi (jsoneaday)
Hi I'm trying to build my project as C so I can call it from Nodejs. But when I run the command "go build -buildmode=c-shared -o keyring.so ." I get a so file but no h C header. I am running this on Mac M1. I read something about cgo being disabled by default on mac's without the c toolchain bu