From f89050d7d8b17e5ea639d22d9f71409b8ba24ade Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Sun, 5 Dec 2010 12:04:15 +0900 Subject: [PATCH] doc/install: describe GOHOSTOS and GOHOSTARCH Fixes #1303. R=rsc, PeterGo CC=golang-dev https://golang.org/cl/3442041 --- doc/install.html | 22 +++++++++++++++++++--- 1 file 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.

Environment variables

-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.

@@ -331,8 +331,8 @@ to override the defaults.
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 $GOHOSTOS and + $GOHOSTARCH respectively (described below).

Choices for $GOOS are linux, @@ -377,6 +377,22 @@ to override the defaults.

+
+$GOHOSTOS and $GOHOSTARCH +
+
+ The name of the host operating system and compilation architecture. + These default to the local system's operating system and + architecture. + +

+ Valid choices are the same as for $GOOS and + $GOARCH, listed above. + The specified values must be compatible with the local system. + For example, you should not set $GOHOSTARCH to + arm on an x86 system. +

+
$GOBIN