Skip to content

Commit 0b86a04

Browse files
cherrymuiaclements
authored andcommitted
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>
1 parent c426c87 commit 0b86a04

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/go1.21.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ <h2 id="tools">Tools</h2>
5252

5353
<h3 id="go-command">Go command</h3>
5454

55-
<p>
56-
TODO: complete this section, or delete if not needed
55+
<p><-- https://go.dev/issue/58099, CL 474236 -->
56+
The <code>-pgo</code> build flag now defaults to <code>-pgo=auto</code>,
57+
and the restriction of specifying a single main package on the command
58+
line is now removed. If a file named <code>default.pgo</code> is present
59+
in the main package's directory, the <code>go</code> command will use
60+
it to enable profile-guided optimization for building the corresponding
61+
program.
5762
</p>
5863

5964
<h2 id="runtime">Runtime</h2>

0 commit comments

Comments
 (0)