aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/main.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-10-28 14:26:51 -0700
committerTobias Bosch <tbosch@google.com>2019-11-01 00:05:45 +0000
commit8dd67e1063927b99ee18caa11ccee9abc1c0cbd1 (patch)
treec4a14c61db6294de2b58ab1b7b09d28c656fc047 /compiler_wrapper/main.go
parentb922860193acc4c2f5c9ae28e29f0f33deffcd1b (diff)
downloadtoolchain-utils-8dd67e1063927b99ee18caa11ccee9abc1c0cbd1.tar.gz
toolchain_utils: Remove comparison to old wrapper from compiler_wrapper.
BUG=chromium:773875 TEST='go test' passes Change-Id: Iecbe15067bf37fd86fbb8a907d42df32288821d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1884701 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/main.go')
-rw-r--r--compiler_wrapper/main.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler_wrapper/main.go b/compiler_wrapper/main.go
index 3fcf3a66..046cf5a5 100644
--- a/compiler_wrapper/main.go
+++ b/compiler_wrapper/main.go
@@ -6,24 +6,17 @@
// - main.UseCCache: Whether to use ccache.
// - main.ConfigName: Name of the configuration to use.
// See config.go for the supported values.
-// - main.OldWrapperPath: Path to the old wrapper to compare commands
-// against. Comparison is deactivated if empty.
//
// 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:
-// - crosroot: Specifies the ChromeOS toolchain root directory (aka chroot).
-// If this is given, golden tests will compare the produced commands against the
-// old compiler wrapper.
// - 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 and compare golden output against old compiler wrapper:
-// go test third_party/toolchain-utils/compiler_wrapper/ -v --crosroot=$HOME/chromiumos/chroot/
// - run all tests in isolation:
// go test third_party/toolchain-utils/compiler_wrapper/ -v
package main
@@ -43,7 +36,7 @@ func main() {
log.Fatal(err)
}
// Note: callCompiler will exec the command. Only in case of
- // an error or when we are comparing against the old wrapper
+ // an error or when we run other commands like bisect
// will this os.Exit be called.
os.Exit(callCompiler(env, cfg, newProcessCommand()))
}