]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.21: document that -pgo=auto enabled by default
authorCherry Mui <cherryyz@google.com>
Tue, 16 May 2023 21:51:43 +0000 (17:51 -0400)
committerAustin Clements <austin@google.com>
Wed, 17 May 2023 22:11:31 +0000 (22:11 +0000)
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>

doc/go1.21.html

index 421a509fea1f3f81cf331d80cb7f786e20198365..66bf5470baf729a4de6052bb552424635a19226d 100644 (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>