• Ian Lance Taylor's avatar
    cmd/go: depend on runtime/cgo if external linking mode is forced · af161c57
    Ian Lance Taylor authored
    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/9115Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    af161c57
Name
Last commit
Last update
..
5g Loading commit data...
5l Loading commit data...
6g Loading commit data...
6l Loading commit data...
7g Loading commit data...
7l Loading commit data...
8g Loading commit data...
8l Loading commit data...
9g Loading commit data...
9l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
old5a Loading commit data...
old6a Loading commit data...
old8a Loading commit data...
old9a Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
yacc Loading commit data...