aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/doc.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-06-09 12:08:59 -0700
committerRuss Cox <rsc@golang.org>2015-06-19 18:50:12 +0000
commit7bcc6a1615c8265eb64d44e6c066ab699577db18 (patch)
tree18f92c60d0c2d355b44da6c7d1e14320072b8e46 /src/cmd/compile/doc.go
parentf5d494bbdf945f2662eb4da45cdb75de2b7d43d4 (diff)
downloadgo-7bcc6a1615c8265eb64d44e6c066ab699577db18.tar.gz
go-7bcc6a1615c8265eb64d44e6c066ab699577db18.zip
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>
Diffstat (limited to 'src/cmd/compile/doc.go')
-rw-r--r--src/cmd/compile/doc.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go
index ca7c03bb79..6025f32d33 100644
--- a/src/cmd/compile/doc.go
+++ b/src/cmd/compile/doc.go
@@ -54,6 +54,9 @@ Flags:
Remove the limit on the number of errors reported (default limit is 10).
-h
Halt with a stack trace at the first error detected.
+ -importmap old=new
+ Interpret import "old" as import "new" during compilation.
+ The option may be repeated to add multiple mappings.
-installsuffix suffix
Look for packages in $GOROOT/pkg/$GOOS_$GOARCH_suffix
instead of $GOROOT/pkg/$GOOS_$GOARCH.