Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lcmmhcc opened this issue Apr 5, 2023 · 1 comment
Open

Comments

@lcmmhcc
Copy link

lcmmhcc commented Apr 5, 2023

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 golang/go#26366

@tarakby
Copy link

tarakby commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants