From b38b0c0088039b03117b87eee61583ac4153f2b7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 25 Feb 2025 10:51:29 -0800 Subject: [PATCH] cmd/compile: document -embedcfg flag Fixes #71942 Change-Id: Ie7e795506a9c8781f0e0963012233a7ed1093855 Reviewed-on: https://go-review.googlesource.com/c/go/+/652475 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Pratt Reviewed-by: Robert Griesemer --- src/cmd/compile/doc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go index 49abb857ad..f76f402f38 100644 --- a/src/cmd/compile/doc.go +++ b/src/cmd/compile/doc.go @@ -60,6 +60,11 @@ Flags: Allow references to Go symbols in shared libraries (experimental). -e Remove the limit on the number of errors reported (default limit is 10). + -embedcfg file + Read go:embed configuration from file. + This is required if any //go:embed directives are used. + The file is a JSON file mapping patterns to lists of filenames + and filenames to full path names. -goversion string Specify required go tool version of the runtime. Exits when the runtime go version does not match goversion. -- 2.51.0