]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: explicitly disallow mixing -iexport={false,true}
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 May 2018 19:42:11 +0000 (12:42 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 1 May 2018 22:31:24 +0000 (22:31 +0000)
commiteec8fb5ef3a60fae575f18ec05e7c21f5589f05f
tree69ec9aeb9ba36aa106d6cfc32d33a3333fb353a6
parentc2366b27abe7e18b1b5642e5a9a009f5c41723ae
cmd/compile: explicitly disallow mixing -iexport={false,true}

flagiexport currently controls not just whether to use the indexed
export format when writing out package data, but also how symbol
import logic works. In particular, it enables lazy loading logic that
currently doesn't work with packages imported via bimport.

We could change the import logic to base decisions on the export data
format used by the packages that individual symbols were loaded from,
but since we expect to deprecate and remove bimport anyway and there's
no need for mixing bimport and iimport, it's simpler to just disallow
mixing them.

Change-Id: I02dbac45062e9dd85a1a647ee46bfa0efbb67e9d
Reviewed-on: https://go-review.googlesource.com/110715
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/main.go