From: Cherry Mui Date: Tue, 16 May 2023 21:51:43 +0000 (-0400) Subject: doc/go1.21: document that -pgo=auto enabled by default X-Git-Tag: go1.21rc1~469 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0b86a04db011c44056688217e073ae380772b57b;p=gostls13.git 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 Reviewed-by: Austin Clements TryBot-Result: Gopher Robot --- diff --git a/doc/go1.21.html b/doc/go1.21.html index 421a509fea..66bf5470ba 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -52,8 +52,13 @@ Do not send CLs removing the interior tags from such phrases.

Go command

-

- TODO: complete this section, or delete if not needed +

<-- https://go.dev/issue/58099, CL 474236 --> + The -pgo build flag now defaults to -pgo=auto, + and the restriction of specifying a single main package on the command + line is now removed. If a file named default.pgo is present + in the main package's directory, the go command will use + it to enable profile-guided optimization for building the corresponding + program.

Runtime