CGo without a toolchain

118 views
Skip to first unread message

Lorenz Bauer

unread,
Jul 15, 2026, 3:59:12 AM (3 days ago) Jul 15
to golang-dev
Hi,

The recent Compiler and runtime meeting notes mention a tantalizing "CGo without C toolchain", but I've not been able to find any details. Is there a place I could read up about this?

Best
Lorenz

Keith Randall

unread,
Jul 15, 2026, 5:39:31 PM (3 days ago) Jul 15
to Lorenz Bauer, golang-dev
I don't know if there's any particular issue for you to read, unfortunately. Historically, cgo has been hard with Windows because it's tricky to install a C toolchain.

I believe the idea here is to have a .syso or .dll with the C code (produced in whatever way you desire) and have the Go runtime able to call into that C code.
It would require some sort of prototype information in addition to the code blob itself.

https://github.com/golang/go/issues/9306 contains some discussions about this.


--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-dev/de585e52-32dd-49cb-9cf0-9905685fc0d0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages