aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorkortschak <dan.kortschak@adelaide.edu.au>2016-02-18 21:19:03 +1030
committerIan Lance Taylor <iant@golang.org>2016-02-24 15:06:38 +0000
commit50c38d46e870435c17ac86957e2eb469ce41dd6d (patch)
treec60ced4f689287c4db2fc2c7231bb4bb68a79a4b /src/make.bash
parent6e6637bdb478e98d32dd10659ea1975a00aeda0a (diff)
downloadgo-50c38d46e870435c17ac86957e2eb469ce41dd6d.tar.gz
go-50c38d46e870435c17ac86957e2eb469ce41dd6d.zip
cmd/go, go/build: add support for Fortran
This change adds support for Fortran files (.f, .F, .for, .f90) to the go tool, in a similar fashion to Objective-C/C++. Only gfortran is supported out of the box so far but leaves other Fortran compiler toolchains the ability to pass the correct link options via CGO_LDFLAGS. A simple test (misc/cgo/fortran) has been added and plugged into the general test infrastructure. This test is only enabled when the $FC environment variable is defined (or if 'gfortran' was found in $PATH.) Derived from CL 4114. Change-Id: Ifc855091942f95c6e9b17d91c17ceb4eee376408 Reviewed-on: https://go-review.googlesource.com/19670 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index 2531ca4bb3..21cc29730d 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -44,6 +44,9 @@
# This is used by cgo. Default is CXX, or, if that is not set,
# "g++" or "clang++".
#
+# FC: Command line to run to compile Fortran code for GOARCH.
+# This is used by cgo. Default is "gfortran".
+#
# GO_DISTFLAGS: extra flags to provide to "dist bootstrap".
set -e