From: willboland Date: Sun, 29 Dec 2024 02:37:06 +0000 (+0000) Subject: cmd/link: document that -s implies -w X-Git-Tag: go1.24rc2~6^2~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ba1deb1cee;p=gostls13.git cmd/link: document that -s implies -w Existing documentation does not reference implicit behavior. Updates the documentation to reflect that -s implies -w. Fixes #71051 Change-Id: I5c139c37f5f78596365e38479be4c865a4d4dd62 GitHub-Last-Rev: a3e462c4168284529ea1b0d03bc25fb1c12f1da5 GitHub-Pull-Request: golang/go#71053 Reviewed-on: https://go-review.googlesource.com/c/go/+/638976 LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui --- diff --git a/src/cmd/link/doc.go b/src/cmd/link/doc.go index 9ec2c002f4..7b548f960f 100644 --- a/src/cmd/link/doc.go +++ b/src/cmd/link/doc.go @@ -118,6 +118,7 @@ Flags: Link with race detection libraries. -s 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.