1
0
mirror of https://github.com/golang/go synced 2024-10-05 16:41:21 -06:00
go/src
Ian Lance Taylor af161c577c cmd/go: depend on runtime/cgo if external linking mode is forced
In external linking mode, the linker automatically imports
runtime/cgo.  When the user uses non-standard compilation options,
they have to know to run go install runtime/cgo.  When the go tool
adds non-standard compilation options itself, we can't force the user
to do that.  So add the dependency ourselves.

Bad news: we don't currently have a clean way to know whether we are
going to use external linking mode.  This CL duplicates logic split
between cmd/6l and cmd/internal/ld.

Good news: adding an unnecessary dependency on runtime/cgo does no
real harm.  We aren't going to force the linker to pull it in, we're
just going to build it so that its available if the linker wants it.

Change-Id: Ide676339d4e8b1c3d9792884a2cea921abb281b7
Reviewed-on: https://go-review.googlesource.com/9115
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
2015-04-21 17:35:33 +00:00
..
archive all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
bufio bufio: fix incorrect comment on Scanner.Scan 2015-03-18 00:59:49 +00:00
builtin
bytes bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00
cmd cmd/go: depend on runtime/cgo if external linking mode is forced 2015-04-21 17:35:33 +00:00
compress compress/flate: simplify the TestDegenerateHuffmanCoding data. 2015-04-17 04:31:48 +00:00
container
crypto crypto/tls: fix test data generation 2015-04-16 18:16:37 +00:00
database/sql database/sql: Retry with a fresh connection after maxBadConnRetries 2015-04-08 16:18:36 +00:00
debug debug/dwarf: add Entry.AttrField method to get *Field by Attr 2015-04-12 14:38:00 +00:00
encoding encoding/gob: fix hang from skipping large slices 2015-04-17 22:04:34 +00:00
errors
expvar expvar: swap Float sync. from mutex to atomic. 2015-04-12 23:07:50 +00:00
flag all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
fmt fmt: adjust formatting of invalid reflect.Value, add more tests 2015-04-17 14:14:39 +00:00
go go/build: deps check all std packages 2015-04-17 05:37:45 +00:00
hash os/signal, hash/crc32: add arm64 build tags 2015-03-16 18:46:43 +00:00
html text/template: provide a mechanism for options 2015-04-03 23:40:59 +00:00
image image/color: have Palette.Index honor alpha for closest match, not just 2015-04-16 23:52:41 +00:00
index/suffixarray
internal internal/syscall: move to unix subdirectory 2015-04-15 23:51:36 +00:00
io io: add CopyBuffer, a version of Copy in which the user provides a buffer 2015-04-15 15:59:16 +00:00
log log/syslog: limiting tests on darwin/arm64 2015-04-13 11:54:28 +00:00
math math/big: better doc strings for ErrNaN functionality 2015-04-09 20:18:32 +00:00
mime mime/quotedprintable: Return a Reader instead of an io.Reader 2015-04-16 16:18:26 +00:00
net net: fix possible nil pointer dereference on ReadFrom for windows 2015-04-21 06:34:44 +00:00
os os: clarify that ModePerm permission bits are the Unix ones 2015-04-16 16:42:10 +00:00
path path/filepath: skip test on darwin/arm64 2015-04-13 11:52:46 +00:00
reflect reflect: use arrayAt consistently 2015-04-21 17:29:25 +00:00
regexp regexp: set b.cap[0] and b.cap[1] only when captures requested 2015-04-17 17:10:07 +00:00
runtime runtime: assist harder if GC exceeds the estimated marked heap 2015-04-21 15:35:55 +00:00
sort
strconv strconv: use 64bit uint for decimal conversion if available 2015-04-10 17:42:20 +00:00
strings bytes, strings: add Reader.Size methods 2015-04-06 08:53:47 +00:00
sync sync/atomic: skip issue 7338 test on darwin/arm64 2015-04-12 02:47:43 +00:00
syscall syscall: darwin/arm64 support 2015-04-16 12:43:44 +00:00
testing testing/quick: fix comment 2015-03-27 13:00:53 +00:00
text text/template: provide a mechanism for options 2015-04-03 23:40:59 +00:00
time time: add Time.AppendFormat 2015-04-10 20:18:22 +00:00
unicode all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
unsafe
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: copy pkg for gcimporter tests 2015-04-08 14:39:07 +00:00
bootstrap.bash
clean.bash
clean.bat
clean.rc
iostest.bash iostest.bash: run detect.go as part of iostest 2015-04-16 12:59:54 +00:00
make.bash
make.bat
Make.dist
make.rc
nacltest.bash nacltest.bash: reduce test time by using bootstrapping Go to build fstest_nacl.go 2015-03-24 23:58:14 +00:00
race.bash
race.bat
run.bash build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
run.bat build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
run.rc build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00