mirror of
https://github.com/golang/go
synced 2024-11-21 21:44:40 -07:00
add freebsd to the list of os'es.
make the GOOS/GOARCH pair a table to avoid the confusion caused when it was of the form linux/386. R=rsc CC=golang-dev https://golang.org/cl/160061
This commit is contained in:
parent
bd80b5a835
commit
53ab6a0ad1
@ -37,19 +37,44 @@ plus one optional variable:</p>
|
|||||||
<dd>
|
<dd>
|
||||||
The name of the target operating system and compilation architecture.
|
The name of the target operating system and compilation architecture.
|
||||||
Choices for <code>$GOOS</code> are <code>linux</code>,
|
Choices for <code>$GOOS</code> are <code>linux</code>,
|
||||||
|
<code>freebsd</code>,
|
||||||
<code>darwin</code> (Mac OS X 10.5 or 10.6),
|
<code>darwin</code> (Mac OS X 10.5 or 10.6),
|
||||||
and <code>nacl</code> (Native Client, an incomplete port).
|
and <code>nacl</code> (Native Client, an incomplete port).
|
||||||
Choices for <code>$GOARCH</code> are <code>amd64</code> (64-bit x86, the most mature port),
|
Choices for <code>$GOARCH</code> are <code>amd64</code> (64-bit x86, the most mature port),
|
||||||
<code>386</code> (32-bit x86), and
|
<code>386</code> (32-bit x86), and
|
||||||
<code>arm</code> (32-bit ARM, an incomplete port).
|
<code>arm</code> (32-bit ARM, an incomplete port).
|
||||||
The valid combinations are
|
The valid combinations of <code>$GOOS</code> and <code>$GOARCH</code> are:
|
||||||
<code>linux</code>/<code>amd64</code>,
|
<p>
|
||||||
<code>linux</code>/<code>arm</code>,
|
<table cellpadding="0">
|
||||||
<code>linux</code>/<code>386</code>,
|
<tr>
|
||||||
<code>darwin</code>/<code>amd64</code>,
|
<th width="50"><th align="left" width="100"><code>$GOOS</code></th> <th align="left" width="100"><code>$GOARCH</code></th>
|
||||||
<code>darwin</code>/<code>386</code>,
|
</tr>
|
||||||
and
|
<tr>
|
||||||
<code>nacl</code>/<code>386</code>.
|
<td></td><td><code>darwin</code></td> <td><code>386</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>darwin</code></td> <td><code>amd64</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>freebsd</code></td> <td><code>386</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>freebsd</code></td> <td><code>amd64</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>linux</code></td> <td><code>386</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>linux</code></td> <td><code>amd64</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>linux</code></td> <td><code>arm</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td><td><code>nacl</code></td> <td><code>386</code></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
|
Loading…
Reference in New Issue
Block a user