Remove the extra -g in command line if no patch
BUG=None
TEST=The script works without patch
Change-Id: I9ee5308ff889699b4b206417ba105db65f0cfb62
Reviewed-on: https://gerrit-int.chromium.org/35440
Reviewed-by: Han Shen <shenhan@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
Commit-Queue: Yunlian Jiang <yunlian@google.com>
diff --git a/remote_gcc_build.py b/remote_gcc_build.py
index 1ef4035..0f374a7 100755
--- a/remote_gcc_build.py
+++ b/remote_gcc_build.py
@@ -385,7 +385,10 @@
args = parser.parse_args(argv[1:])
target = args.target
- patch = args.patch.split(",")
+ if args.patch:
+ patch = args.patch.split(",")
+ else:
+ patch = []
chromeos_root = misc.CanonicalizePath(args.chromeos_root)
branch = args.branch
# descritption is the keyword of the build in build log.