From bcc86d5f42fddc2eca1bb066668388aa6807c38c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 30 Jan 2018 16:55:27 +0000 Subject: [PATCH] doc: add GOMIPS to source installation docs Also close tags. Fixes #23614 Change-Id: Icabcd577ef7df43e54d2b0068ee54614ba65bea1 Reviewed-on: https://go-review.googlesource.com/90815 Reviewed-by: Cherry Zhang --- doc/install-source.html | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/doc/install-source.html b/doc/install-source.html index 8813455cbc..4ed9487504 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -446,6 +446,7 @@ defaults to the parent of the directory where all.bash was run. There is no need to set this unless you want to switch between multiple local copies of the repository.

+
  • $GOROOT_FINAL

    @@ -456,12 +457,14 @@ If you want to build the Go tree in one location but move it elsewhere after the build, set $GOROOT_FINAL to the eventual location.

    +
  • $GOOS and $GOARCH

    The name of the target operating system and compilation architecture. These default to the values of $GOHOSTOS and $GOHOSTARCH respectively (described below). +

  • Choices for $GOOS are @@ -582,6 +585,7 @@ 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 @@ -600,6 +604,7 @@ directory to your $PATH, so you can use the tools. If $GOBIN is set, the go command installs all commands there.

    +
  • $GO386 (for 386 only, default is auto-detected if built on either 386 or amd64, 387 otherwise) @@ -609,9 +614,10 @@ This controls the code generated by gc to use either the 387 floating-point unit floating point computations.

      -
    • GO386=387: use x87 for floating point operations; should support all x86 chips (Pentium MMX or later). -
    • GO386=sse2: use SSE2 for floating point operations; has better performance than 387, but only available on Pentium 4/Opteron/Athlon 64 or later. +
    • GO386=387: use x87 for floating point operations; should support all x86 chips (Pentium MMX or later).
    • +
    • GO386=sse2: use SSE2 for floating point operations; has better performance than 387, but only available on Pentium 4/Opteron/Athlon 64 or later.
    +
  • $GOARM (for arm only; default is auto-detected if building on the target processor, 6 if not) @@ -620,9 +626,9 @@ This sets the ARM floating point co-processor architecture version the run-time should target. If you are compiling on the target system, its value will be auto-detected.

      -
    • GOARM=5: use software floating point; when CPU doesn't have VFP co-processor -
    • GOARM=6: use VFPv1 only; default if cross compiling; usually ARM11 or better cores (VFPv2 or better is also supported) -
    • GOARM=7: use VFPv3; usually Cortex-A cores +
    • GOARM=5: use software floating point; when CPU doesn't have VFP co-processor
    • +
    • GOARM=6: use VFPv1 only; default if cross compiling; usually ARM11 or better cores (VFPv2 or better is also supported)
    • +
    • GOARM=7: use VFPv3; usually Cortex-A cores

    If in doubt, leave this variable unset, and adjust it if required @@ -631,6 +637,17 @@ The GoARM page on the Go community wiki contains further details regarding Go's ARM support.

    +
  • + +
  • $GOMIPS (for mips and mipsle only) +

    +This sets whether to use floating point instructions. +

    +
      +
    • GOMIPS=hardfloat: use floating point instructions (the default)
    • +
    • GOMIPS=softfloat: use soft floating point
    • +
    +
  • -- 2.50.0