]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: parse command-line flags earlier
authorMatthew Dempsky <mdempsky@google.com>
Thu, 12 May 2022 21:06:31 +0000 (14:06 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 13 May 2022 21:12:06 +0000 (21:12 +0000)
commitb6c5a5baa7c2c4df7ec8016e9a766dcc57895582
tree4347432e74476ed39f749895ce675e43e3187b63
parente97ceb278297a357580cd80a651c39158f82d45e
cmd/compile/internal/gc: parse command-line flags earlier

This CL moves the call to base.ParseFlags() earlier in compiler
startup. This is necessary so CL 393715 can use base.Ctxt.Pkgpath to
construct types.LocalPkg.

Updates #51734.

Change-Id: I9f5f75dc9d5fd1b1d22e98523efc95e6cec64385
Reviewed-on: https://go-review.googlesource.com/c/go/+/406055
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/gc/main.go