1
0
mirror of https://github.com/golang/go synced 2024-11-26 02:07:57 -07:00

doc/go1.21: document that -pgo=auto enabled by default

Updates #58099.

Change-Id: I95c0397add696f677c86ab7618482e07eb4e9fda
Reviewed-on: https://go-review.googlesource.com/c/go/+/495477
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Cherry Mui 2023-05-16 17:51:43 -04:00 committed by Austin Clements
parent c426c87012
commit 0b86a04db0

View File

@ -52,8 +52,13 @@ Do not send CLs removing the interior tags from such phrases.
<h3 id="go-command">Go command</h3>
<p>
TODO: complete this section, or delete if not needed
<p><-- https://go.dev/issue/58099, CL 474236 -->
The <code>-pgo</code> build flag now defaults to <code>-pgo=auto</code>,
and the restriction of specifying a single main package on the command
line is now removed. If a file named <code>default.pgo</code> is present
in the main package's directory, the <code>go</code> command will use
it to enable profile-guided optimization for building the corresponding
program.
</p>
<h2 id="runtime">Runtime</h2>