]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: default to -p=main for main package
authorCherry Mui <cherryyz@google.com>
Tue, 22 Mar 2022 21:08:56 +0000 (17:08 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 23 Mar 2022 14:57:56 +0000 (14:57 +0000)
commit20ba3f5de52bf8665d35c86111312274f6a4d1be
tree5b23e07ee62a3929d276b82d554dae56f7d200f2
parent1e34c00b4c84a32423042e3d03397277e6c3573c
cmd/compile: default to -p=main for main package

With the previous CL the compiler emits an unlinkable object if
the -p flag is not specified. It is actually okay (and convenient)
to omit the -p flag for (just) the main package. This CL makes it
so.

Change-Id: I978d54d14c45b3bb9ed7471e40a2c47f269b56f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/394834
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/link/link_test.go