diff options
author | Ryan Beltran <ryanbeltran@chromium.org> | 2023-08-14 23:34:03 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-15 20:56:23 +0000 |
commit | 43244d82873f1d0e9b7531f141ed3ac06ad452c7 (patch) | |
tree | 75ffbae1ade696bf91914c4e24aeab8329b38ba8 | |
parent | c0306cc96bf91a8e926ae79240d7639b942de74a (diff) | |
download | toolchain-utils-43244d82873f1d0e9b7531f141ed3ac06ad452c7.tar.gz |
compiler_wrapper: Apply go fmt changes
This CL applies the changes generated by go fmt. Mostly they are
just changing the formatting of comments because go fmt seems to care
about that.
BUG=None
TEST=go fmt
Change-Id: I8162940a4e64735817b8718c42b4d36dff3ab600
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4777948
Reviewed-by: George Burgess <gbiv@chromium.org>
Commit-Queue: Ryan Beltran <ryanbeltran@chromium.org>
Tested-by: Ryan Beltran <ryanbeltran@chromium.org>
-rw-r--r-- | compiler_wrapper/main.go | 16 | ||||
-rw-r--r-- | compiler_wrapper/rusage_flag.go | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/compiler_wrapper/main.go b/compiler_wrapper/main.go index 8cfa4364..7d1e3f49 100644 --- a/compiler_wrapper/main.go +++ b/compiler_wrapper/main.go @@ -3,22 +3,22 @@ // found in the LICENSE file. // This binary requires the following linker variables: -// - main.UseCCache: Whether to use ccache. -// - main.ConfigName: Name of the configuration to use. -// See config.go for the supported values. +// - main.UseCCache: Whether to use ccache. +// - main.ConfigName: Name of the configuration to use. +// See config.go for the supported values. // // The script ./build simplifies the call to `go build`. // E.g. ./build --use_ccache=true --config=cros.hardened will build a // binary that uses the ccache for ChromeOS with hardened flags. // // Test arguments: -// - updategolden: To update the golden results for the wrapper. Without it, -// the tests will verify that the wrapper output matches the goldens. -// - rungolden: To filter the golden tests by a regex for the wrapper env, path and args. +// - updategolden: To update the golden results for the wrapper. Without it, +// the tests will verify that the wrapper output matches the goldens. +// - rungolden: To filter the golden tests by a regex for the wrapper env, path and args. // // Examples: -// - run all tests in isolation: -// go test third_party/toolchain-utils/compiler_wrapper/ -v +// - run all tests in isolation: +// go test third_party/toolchain-utils/compiler_wrapper/ -v package main import ( diff --git a/compiler_wrapper/rusage_flag.go b/compiler_wrapper/rusage_flag.go index ed59b11e..899e4da8 100644 --- a/compiler_wrapper/rusage_flag.go +++ b/compiler_wrapper/rusage_flag.go @@ -62,7 +62,7 @@ func removeRusageFromCommand(compilerCmd *command) *command { } // maybeCaptureRusage captures rusage for execution of action() -// unless action returns an error or logFileName is "" +// unless action returns an error or logFileName is "" // a function is returned which saves the rusage log data at logFileName unless logFileName is "" // an error is returned if action returns an error, or rusage commands in syscall fails func maybeCaptureRusage(env env, compilerCmd *command, action func(willLogRusage bool) error) (maybeCommitToFile func(exitCode int) error, err error) { |