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
x/mobile/bind: speed up build times #13163
Comments
Should we mark this as a duplicate of #12819? gomobile needs incremental builds. And it optimally needs to reuse aar or framework files, not just the output of the Go compilation. |
Yep, didn't see that other issue. |
Closing it. Duplicate of #12819. If you don't do -i option, please do so. Android Studio plugin uses -i option by default. |
What is this |
@petejkim for details on asking questions please see https://golang.org/wiki/Questions. Old closed issues is not the place. (Also, look at the output of |
@crawshaw Sorry about that. I just saw that the docs mention "The build flags -a, -i, -n, -x, -gcflags, -ldflags, -tags, and -work are shared with the build command. For documentation, see 'go help build'.". |
I'm building a fairly large library for ios which is working great. Its about 20MB for each architecture.
However, the build times are really starting to take their toll. They are now taking around 5 minutes to build which is tough for productivity. It would be great to be able to speed up these time by perhaps caching some of the build data.
I'm not sure of the process but it seems for every build, bind generates a new random temporary folder for all the files, where perhaps, it could use a cached folder and reuse previously built object files?
The text was updated successfully, but these errors were encountered: