]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add -importcfg to specify import resolution
authorRuss Cox <rsc@golang.org>
Wed, 31 May 2017 15:35:29 +0000 (11:35 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jun 2017 19:49:58 +0000 (19:49 +0000)
commit4f2269edbd1b3e09484001c9cc7897b49c828b45
treeec84772a83c4dbcc64879fed448a1c1050d00ebe
parent4d6b08de709f0914f640e0bc738e094443687bbf
cmd/link: add -importcfg to specify import resolution

Adds the ability to specify the file location of each imported package,
like in the -importcfg added to cmd/compile in a related CL.
In effect, -importcfg is a generalization of and supersedes -installsuffix
and -L. Of course, those flags will continue to be supported, for
compatibility with other tools.

Having this flag in Go 1.9 will let us try some experiments involving
package management without needing guinea pigs to build a custom
Go toolchain.

This flag also helps with #14271 at some later point.

For #20579.

Change-Id: Ie4c171bcd3aa2faa446ac340e36516f2f9853882
Reviewed-on: https://go-review.googlesource.com/44851
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/ld.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/main.go