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: determine the build behavior when non-main package is provided #14317

Closed
rakyll opened this issue Feb 13, 2016 · 1 comment

Comments

@rakyll
Copy link
Contributor

rakyll commented Feb 13, 2016

Current behavior of build is to build the package for the targeted platform(s) and reject the built library.

$ gomobile build golang.org/x/mobile/example/bind/hello
GOMOBILE=/Users/jbd/pkg/gomobile
WORK=/var/folders/00/1b8h8000h01000cxqpysvccm005d21/T/gomobile-work-775499141
GOOS=android GOARCH=arm CC=$GOMOBILE/android-ndk-r10e/arm/bin/arm-linux-androideabi-gcc CXX=$GOMOBILE/android-ndk-r10e/arm/bin/arm-linux-androideabi-g++ CGO_ENABLED=1 GOARM=7 go build -p=8 -pkgdir=$GOMOBILE/pkg_android_arm -tags="" -x golang.org/x/mobile/example/bind/hello
rm -r -f "$WORK"

We might prefer to deprecate the bind command and output an .arr or .framework for non-main packages.

/cc @crawshaw @hyangah

@rakyll rakyll added this to the Unreleased milestone Feb 13, 2016
@rakyll rakyll changed the title x/mobile/cmd/gomobile: build silently works if non-main package is provided x/mobile/cmd/gomobile: determine the build behavior when non-main package is provided Feb 13, 2016
@rakyll
Copy link
Contributor Author

rakyll commented Feb 13, 2016

Given this another thought, gomobile is replicating what the go tool is doing. Hence, closing the issue.

@rakyll rakyll closed this as completed Feb 13, 2016
@golang golang locked and limited conversation to collaborators Feb 28, 2017
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