<p>Since Go 1.5 lets you build packages for any supported operating system and architecture, I made a small tool that uses <code>os/exec</code> to build Go packages for every combination. I wanted this so I could easily support as many platforms as possible for program releases; I figured someone else might find it useful: <a href="https://github.com/wwalexander/go-buildall" rel="nofollow">GitHub</a></p>
<p>Feedback is very much appreciated!</p>
<hr/>**评论:**<br/><br/>brokedown: <pre><p>I'd really like to use a tool like this, but cgo doesn't cross compile for windows targets. Boo!</p></pre>will_alexander: <pre><p>Oh, yeah, I should mention cgo in the README. It ruins all the cross-compiling fun :(</p></pre>rock_neurotiko: <pre><p>Noob question, what's the difference of this and gox?</p></pre>will_alexander: <pre><p>I didn't know about this! It looks like gox is more mature and full-featured; mine is closer to a shell script. His also works for Go <1.5 by rebuilding the toolchain.</p></pre>thomasfr: <pre><p>I have a docker image for one project which has osxcross and mingw installed.. I don't believe in a general solution for this since every project might differ. Cant really share the image because apple wont allow me redistribute their osx frameworks.</p></pre>
Since Go 1.5 is out, I made a tool to build Go packages for every OS/architecture combo
polaris · · 554 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传