diff options
Diffstat (limited to 'compiler_wrapper')
-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) { |