aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-12-05 12:04:15 +0900
committerAndrew Gerrand <adg@golang.org>2010-12-05 12:04:15 +0900
commitf89050d7d8b17e5ea639d22d9f71409b8ba24ade (patch)
tree52846b24c5b8f7f9ab06dd07ebc4a592512e88d2
parent9a71bb00bb39ca4cc200df36b2d5bfd591169bef (diff)
downloadgo-f89050d7d8b17e5ea639d22d9f71409b8ba24ade.tar.gz
go-f89050d7d8b17e5ea639d22d9f71409b8ba24ade.zip
doc/install: describe GOHOSTOS and GOHOSTARCH
Fixes #1303. R=rsc, PeterGo CC=golang-dev https://golang.org/cl/3442041
-rw-r--r--doc/install.html22
1 files changed, 19 insertions, 3 deletions
diff --git a/doc/install.html b/doc/install.html
index be1131d4aa..510464960f 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -297,7 +297,7 @@ that receives a message summarizing each checkin to the Go repository.
<h2 id="environment">Environment variables</h2>
<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
to override the defaults.
</p>
@@ -331,8 +331,8 @@ to override the defaults.
</dt>
<dd>
The name of the target operating system and compilation architecture.
- These default to the local system's operating system and
- architecture.
+ These default to the values of <code>$GOHOSTOS</code> and
+ <code>$GOHOSTARCH</code> respectively (described below).
<p>
Choices for <code>$GOOS</code> are <code>linux</code>,
@@ -378,6 +378,22 @@ to override the defaults.
</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>
<code>$GOBIN</code>
</dt>
<dd>