]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add -importmap option
authorRuss Cox <rsc@golang.org>
Tue, 9 Jun 2015 19:08:59 +0000 (12:08 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 19 Jun 2015 18:50:12 +0000 (18:50 +0000)
commit7bcc6a1615c8265eb64d44e6c066ab699577db18
tree18f92c60d0c2d355b44da6c7d1e14320072b8e46
parentf5d494bbdf945f2662eb4da45cdb75de2b7d43d4
cmd/compile: add -importmap option

The -importmap option takes an argument of the form old=new
and specifies that import "old" should be interpreted as if it said
import "new". The option may be repeated to specify multiple mappings.

This option is here to support the go command's new -vendor flag.

Change-Id: I31b4ed4249b549982a720bf61bb230462b33c59b
Reviewed-on: https://go-review.googlesource.com/10922
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/doc.go
src/cmd/compile/internal/gc/lex.go