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

adds a crosscompiling tool #2 #5

Merged
merged 4 commits into from
Jun 23, 2016

Conversation

splitbrain
Copy link

can be called with

 go run tools/cross_compile.go

it creates all binaries in a bin directory.

This replaces the bash script from #4

can be called with

   go run tools/cross_compile.go

it creates all binaries in a bin directory.
This was referenced Jun 23, 2016
log.Fatal("Please call from main dir as 'go run tools/cross_compile.go'")
}

os.Mkdir("bin", 0755)
Copy link
Owner

Choose a reason for hiding this comment

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

please check error from Mkdir and also log.Fatal or panic

@splitbrain
Copy link
Author

Thanks for the pointers. Should all be fixed now.

@@ -0,0 +1,67 @@
// +build none
Copy link
Owner

Choose a reason for hiding this comment

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

heh, wondered if you'll get caught ;) the +build directive requires an empty line immediately below, before a "regular godoc comment" can start, or it won't work correctly.

log.Fatal("Please call from main dir as 'go run tools/cross_compile.go'")
}

if err := os.Mkdir("bin", 0755); err != nil {
Copy link
Owner

Choose a reason for hiding this comment

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

will be nicer this way:

err := os.Mkdir(...)
if err != nil && !os.IsExist(err) {
  ...
}

@akavel akavel merged commit 31a8e6e into akavel:still-gpl2 Jun 23, 2016
@akavel
Copy link
Owner

akavel commented Jun 23, 2016

Thanks!

@akavel akavel mentioned this pull request Jun 23, 2016
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.

2 participants