Skip to content

Commit

Permalink
cmd/link: document that -s implies -w
Browse files Browse the repository at this point in the history
The Go 1.22 release notes note that the -s flag implies -w; however, the documentation makes no such reference. This updates the documentation to better match the release notes.

The Go 1.22 release notes can be found at https://tip.golang.org/doc/go1.22#linker

Fixes golang#71051
  • Loading branch information
willboland committed Dec 29, 2024
1 parent 2b794ed commit 6217791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/link/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Flags:
-race
Link with race detection libraries.
-s
Omit the symbol table and debug information.
Omit the symbol table and debug information. Implies the -w flag,
which can be negated with -w=0.
-tmpdir dir
Write temporary files to dir.
Temporary files are only used in external linking mode.
Expand Down

0 comments on commit 6217791

Please sign in to comment.