From: uji Date: Wed, 2 Mar 2022 23:29:43 +0000 (+0000) Subject: make.bash: document CC_FOR_${GOOS}_${GOARCH} X-Git-Tag: go1.19beta1~777 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7d1e07049fec1d9a9fd4116111e52b161746dbde;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Trust: Cherry Mui --- 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". #