1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:24:47 -07:00
go/misc/cgo
kortschak 50c38d46e8 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>
2016-02-24 15:06:38 +00:00
..
errors runtime: handle kindString in cgoCheckArg 2016-01-27 22:50:37 +00:00
fortran cmd/go, go/build: add support for Fortran 2016-02-24 15:06:38 +00:00
gmp misc/cgo/gmp: change pi.go to use standard Go copyright header 2015-12-11 13:29:46 +00:00
life misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
nocgo
stdio misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
test cmd/cgo: support multiple-value special form in VarDecl 2016-02-18 20:12:20 +00:00
testasan
testcarchive cmd/link: add -extar option to set ar program for c-archive 2016-01-26 18:52:36 +00:00
testcshared cmd/go: -buildmode=c-shared should work on darwin/386 2016-01-13 18:24:38 +00:00
testgodefs
testsanitizers runtime: call msanwrite on object passed to runtime/cgo 2016-01-06 04:04:42 +00:00
testshared cmd/link: allow symbols from .a files to override those from .so files 2016-01-20 19:53:53 +00:00
testsigfwd runtime: for c-archive/c-shared, don't install unnecessary signal handlers 2015-12-18 22:27:38 +00:00
testso cmd/dist: convert testso test into Go 2015-06-12 04:33:50 +00:00
testsovar misc/cgo/testsovar: needs the extern keyword to export variables on non-windows platforms 2015-07-21 18:10:57 +00:00
testtls