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

x/mobile/cmd/gomobile: cross compiled standard library is not required at init #11500

Closed
rakyll opened this issue Jul 1, 2015 · 1 comment
Closed

Comments

@rakyll
Copy link
Contributor

rakyll commented Jul 1, 2015

With a fresh GOROOT with no precompiled standard library, I am able to gomobile build targeting both iOS and Android. gomobile init doesn't need to install the standard library for darwin/arm, darwin/arm64 and android/arm.

@rakyll rakyll self-assigned this Jul 1, 2015
@rakyll rakyll added this to the Go1.5Maybe milestone Jul 1, 2015
@rakyll
Copy link
Contributor Author

rakyll commented Jul 1, 2015

gomobile can't do incremental builds, therefore the build time is significantly going up if we don't precompile the standard library.

Without precompiled stdlib:

gomobile build -x golang.org/x/example/basic  9.75s user 2.50s system 224% cpu 5.458 total

With precompiled stdlib:

gomobile build -x golang.org/x/example/basic  2.42s user 0.91s system 130% cpu 2.551 total

Closing the issue for now.

@rakyll rakyll closed this as completed Jul 1, 2015
@golang golang locked and limited conversation to collaborators Jul 1, 2016
@rsc rsc unassigned rakyll Jun 23, 2022
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

2 participants