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

fix(Makefile): allow setting GOARCH #658

Closed
wants to merge 1 commit into from

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Jun 7, 2019

To make cross compiling easier, the Makefile should allow to set GOOS and GOARCH.
However, the assets task is generating a binary that has to be executed locally. If the two environment variables would be left as they for this target, it would fail because of an exec-format error, as the compiled binary is not for the Host OS anymore.

To prevent this GOARCH and GOOS are overwritten with GOHOSTARCH and GOHOSTOS respectively.

This also simplifies building for arm(64), as requested by #653

overwrite GOARCH for the `assets` task to prevent it from failing
@cyriltovena
Copy link
Contributor

Assigned to @slim-bean , he has experiences with the build system.

@sh0rez
Copy link
Member Author

sh0rez commented Jul 17, 2019

Redundant, see #753

@sh0rez sh0rez closed this Jul 17, 2019
@sh0rez sh0rez deleted the make-goarch branch August 15, 2019 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants