aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/unsupported_flags.go
diff options
context:
space:
mode:
authorTobias Bosch <tbosch@google.com>2019-07-17 03:23:59 -0700
committerTobias Bosch <tbosch@google.com>2019-07-18 08:23:16 +0000
commit22c32b40be54a9e4062655f90908f98b11e73966 (patch)
treec9cba15f22bafea60a69a676936de944df81290f /compiler_wrapper/unsupported_flags.go
parent0fc0acdd69e58273ba8987cba9afac2304454561 (diff)
downloadtoolchain-utils-22c32b40be54a9e4062655f90908f98b11e73966.tar.gz
Add json mapping for command and commandResult.
Also exports the fields on these structs so that json can read/write them. BUG=chromium:773875 TEST=unit test Change-Id: I0efead41693dd35548738a0b3a3e5c71c97c319c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1706790 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Tobias Bosch <tbosch@google.com>
Diffstat (limited to 'compiler_wrapper/unsupported_flags.go')
-rw-r--r--compiler_wrapper/unsupported_flags.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler_wrapper/unsupported_flags.go b/compiler_wrapper/unsupported_flags.go
index 3e3e8cb5..9712f9fe 100644
--- a/compiler_wrapper/unsupported_flags.go
+++ b/compiler_wrapper/unsupported_flags.go
@@ -1,7 +1,7 @@
package main
func checkUnsupportedFlags(cmd *command) error {
- for _, arg := range cmd.args {
+ for _, arg := range cmd.Args {
if arg == "-fstack-check" {
return newUserErrorf(`option %q is not supported; crbug/485492`, arg)
}