aboutsummaryrefslogtreecommitdiff
path: root/remote_gcc_build.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-04-10 13:53:37 -0700
committerChromeBot <chrome-bot@google.com>2013-04-10 18:22:11 -0700
commit6845e5f094d67d45a6908e2cfdfed25476b8e343 (patch)
treef47779d04749a95a9e41b5527daef5f0075bb13e /remote_gcc_build.py
parentcc4ef90ba831e8506dafcd2abcd7f9c93201cf9e (diff)
downloadtoolchain-utils-6845e5f094d67d45a6908e2cfdfed25476b8e343.tar.gz
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>
Diffstat (limited to 'remote_gcc_build.py')
-rwxr-xr-xremote_gcc_build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote_gcc_build.py b/remote_gcc_build.py
index 1ef4035b..0f374a76 100755
--- a/remote_gcc_build.py
+++ b/remote_gcc_build.py
@@ -385,7 +385,10 @@ def Main(argv):
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.