aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authoruji <ujiprog@gmail.com>2022-03-02 23:29:43 +0000
committerIan Lance Taylor <iant@golang.org>2022-04-04 17:35:32 +0000
commit7d1e07049fec1d9a9fd4116111e52b161746dbde (patch)
tree256e43f7b103ca0a6f6fb128a9fe87f875d1df0e /src/make.bash
parent5bfd51147e460bad6615b5baaf68609a413eda1a (diff)
downloadgo-7d1e07049fec1d9a9fd4116111e52b161746dbde.tar.gz
go-7d1e07049fec1d9a9fd4116111e52b161746dbde.zip
make.bash: document CC_FOR_${GOOS}_${GOARCH}
Fixes #51306 Change-Id: I5989d86fe5ac4d02793b2ecb00c549d9586763da GitHub-Last-Rev: 6b0f6bee434219a2c502e8b5630fbe74ca25024a GitHub-Pull-Request: golang/go#51379 Reviewed-on: https://go-review.googlesource.com/c/go/+/388176 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/make.bash b/src/make.bash
index 96cbbf37a9..31387da33c 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -41,12 +41,20 @@
# Default is "gcc". Also supported: "clang".
#
# CC_FOR_TARGET: Command line to run to compile C code for GOARCH.
-# This is used by cgo. Default is CC.
+# This is used by cgo. Default is CC.
+#
+# CC_FOR_${GOOS}_${GOARCH}: Command line to run to compile C code for specified ${GOOS} and ${GOARCH}.
+# (for example, CC_FOR_linux_arm)
+# If this is not set, the build will use CC_FOR_TARGET if appropriate, or CC.
#
# CXX_FOR_TARGET: Command line to run to compile C++ code for GOARCH.
# This is used by cgo. Default is CXX, or, if that is not set,
# "g++" or "clang++".
#
+# CXX_FOR_${GOOS}_${GOARCH}: Command line to run to compile C++ code for specified ${GOOS} and ${GOARCH}.
+# (for example, CXX_FOR_linux_arm)
+# If this is not set, the build will use CXX_FOR_TARGET if appropriate, or CXX.
+#
# FC: Command line to run to compile Fortran code for GOARCH.
# This is used by cgo. Default is "gfortran".
#