]> Cypherpunks repositories - gostls13.git/commit
cmd/go, go/build: add support for Fortran
authorkortschak <dan.kortschak@adelaide.edu.au>
Thu, 18 Feb 2016 10:49:03 +0000 (21:19 +1030)
committerIan Lance Taylor <iant@golang.org>
Wed, 24 Feb 2016 15:06:38 +0000 (15:06 +0000)
commit50c38d46e870435c17ac86957e2eb469ce41dd6d
treec60ced4f689287c4db2fc2c7231bb4bb68a79a4b
parent6e6637bdb478e98d32dd10659ea1975a00aeda0a
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>
misc/cgo/fortran/answer.f90 [new file with mode: 0644]
misc/cgo/fortran/fortran.go [new file with mode: 0644]
misc/cgo/fortran/fortran_test.go [new file with mode: 0644]
src/cmd/cgo/doc.go
src/cmd/dist/test.go
src/cmd/go/build.go
src/cmd/go/list.go
src/cmd/go/pkg.go
src/go/build/build.go
src/make.bash
src/make.bat