<p dir="auto">To easier write tooling for cross compiling it would be good to programmatically get the possible combinations of GOOS and GOARCH.</p>
<p dir="auto">The only reference I can find is at <a href="http://golang.org/doc/install/source#environment" rel="nofollow">http://golang.org/doc/install/source#environment</a></p>
<p dir="auto">In addition, <code class="notranslate">go help environment</code>only gives examples; and<code class="notranslate">go help build</code> and <code class="notranslate">go help install</code>does not mention GOOS and GOARCH.</p>
<pre class="notranslate">Problems with the bits in *os.Process Wait(options int)

1) they're non-portable
2) they're a mix of syscall bit numberspace and Go-assigned numbers (1 &lt;&lt; 20 for
os.WRUSAGE)

We should clean this up somehow:

a) remove the options parameter to Wait
b) keep the options parameter, but document the bits as all Go-defined portable bits
(like FileMode)
c) document that they're all syscall bits and pass them along, but don't provide alias.
force callers to use syscall.WNOHANG, etc.  that leaves WRUSAGE, but we could just
always return that, and remove WRUSAGE.

d) ???</pre>