cmd/link: documentation should mention that -s implies -w #71051
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
n/a
Output of
go env
in your module/workspace:What did you do?
Read the documentation for
go tool link
, specifically with regards to the-s
and-w
flags.What did you see happen?
There documentation only states:
Only the Go 1.22 release notes seem to explain their interaction.
What did you expect to see?
The documentation for
-s
should explicitly say that it implies-w
by default, and that you can override this by explicitly passing-w=0
. (In short, developers should not have to track down the 1.22 release notes to understand how these two flags interact.)The text was updated successfully, but these errors were encountered: