go/src/cmd/compile
Russ Cox a8fc547f78 cmd/compile: apply -importmap to imports before checking for package unsafe
There are fewer special cases this way: the import map applies
to all import paths, not just the ones not spelled "unsafe".

This is also consistent with what the code in cmd/go and go/build expects.
They make no exception for "unsafe".

For #13703.

Change-Id: I622295261ca35a6c1e83e8508d363bddbddb6c0a
Reviewed-on: https://go-review.googlesource.com/18438
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-01-08 19:16:50 +00:00
..
internal cmd/compile: apply -importmap to imports before checking for package unsafe 2016-01-08 19:16:50 +00:00
doc.go cmd/compile: document -trimpath 2015-11-16 20:38:34 +00:00
main.go cmd/compile: set log prefix and suppress date 2015-11-19 23:55:50 +00:00