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

Build with arm versions #528

Merged
merged 3 commits into from
Aug 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ build-all:
gox -verbose \
-ldflags "-X main.version=${VERSION}" \
-os="linux darwin windows " \
-arch="amd64 386" \
-arch="amd64 386 armv5 armv6 armv7 arm64" \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried it out and I don't think armv{5,6,7} are valid. It just ignores the arch's it doesn't know about.

I believe only arm and arm64 are valid.

Copy link
Member Author

@franciscocpg franciscocpg Jul 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained in the first conversation of this PR you must use a gox fork to work.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, I built with just arm and it's working fine on armv7.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, but as stated here

In cross compilation situations, it is recommended that you always set an appropriate GOARM value along with GOARCH.

-osarch="!darwin/arm64" \
-output="dist/{{.OS}}-{{.Arch}}/{{.Dir}}" .

dist: build-all
Expand Down