mirror of
https://github.com/golang/go
synced 2024-11-25 06:07:58 -07:00
doc/install: describe GOHOSTOS and GOHOSTARCH
Fixes #1303. R=rsc, PeterGo CC=golang-dev https://golang.org/cl/3442041
This commit is contained in:
parent
9a71bb00bb
commit
f89050d7d8
@ -297,7 +297,7 @@ that receives a message summarizing each checkin to the Go repository.
|
|||||||
<h2 id="environment">Environment variables</h2>
|
<h2 id="environment">Environment variables</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The Go compilation environment can be customized by five environment variables.
|
The Go compilation environment can be customized by environment variables.
|
||||||
None are required by the build, but you may wish to set them
|
None are required by the build, but you may wish to set them
|
||||||
to override the defaults.
|
to override the defaults.
|
||||||
</p>
|
</p>
|
||||||
@ -331,8 +331,8 @@ to override the defaults.
|
|||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
The name of the target operating system and compilation architecture.
|
The name of the target operating system and compilation architecture.
|
||||||
These default to the local system's operating system and
|
These default to the values of <code>$GOHOSTOS</code> and
|
||||||
architecture.
|
<code>$GOHOSTARCH</code> respectively (described below).
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Choices for <code>$GOOS</code> are <code>linux</code>,
|
Choices for <code>$GOOS</code> are <code>linux</code>,
|
||||||
@ -377,6 +377,22 @@ to override the defaults.
|
|||||||
</table>
|
</table>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>
|
||||||
|
<code>$GOHOSTOS</code> and <code>$GOHOSTARCH</code>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
The name of the host operating system and compilation architecture.
|
||||||
|
These default to the local system's operating system and
|
||||||
|
architecture.
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Valid choices are the same as for <code>$GOOS</code> and
|
||||||
|
<code>$GOARCH</code>, listed above.
|
||||||
|
The specified values must be compatible with the local system.
|
||||||
|
For example, you should not set <code>$GOHOSTARCH</code> to
|
||||||
|
<code>arm</code> on an x86 system.
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt>
|
<dt>
|
||||||
<code>$GOBIN</code>
|
<code>$GOBIN</code>
|
||||||
</dt>
|
</dt>
|
||||||
|
Loading…
Reference in New Issue
Block a user