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

cmd/go: a package that uses cgo does not compile c code in parallel #13157

Closed
xiaoyulei opened this issue Nov 5, 2015 · 2 comments
Closed

cmd/go: a package that uses cgo does not compile c code in parallel #13157

xiaoyulei opened this issue Nov 5, 2015 · 2 comments

Comments

@xiaoyulei
Copy link

I have a package that uses cgo and some C files in it. When I compile, it will compile c files in sequence, not parallel. This will take most compile time. I think we should compile it in parallel automatically or add some parameter to decide by user.

@davecheney
Copy link
Contributor

If you move the cgo code into a separate package, then go tool will be able to compile it once and cache the result.

@ianlancetaylor ianlancetaylor changed the title cgo can not compile c code in parallel cmd/go: a package that uses cgo does not compile c code in parallel Nov 5, 2015
@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Nov 5, 2015
@ianlancetaylor
Copy link
Contributor

Dup of #9887.

@golang golang locked and limited conversation to collaborators Nov 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants