blst icon indicating copy to clipboard operation
blst copied to clipboard

cgo file and .c .h with different directory may cause go build failed

Open lcmmhcc opened this issue 1 year ago • 1 comments

according to https://github.com/golang/go/blob/master/src/cmd/cgo/doc.go#L109

including the cgo file and use go mod vendor is an easy way to reproduce it.

issues https://github.com/golang/go/issues/26366

lcmmhcc avatar Apr 05 '23 13:04 lcmmhcc

The cgo files in the go build are actually only https://github.com/supranational/blst/blob/master/bindings/go/cgo_assembly.S and https://github.com/supranational/blst/blob/master/bindings/go/cgo_server.c. All the source directory code is "copied" thanks to the include directive.

tarakby avatar Feb 08 '24 20:02 tarakby