diff options
author | Yunlian Jiang <yunlian@google.com> | 2013-04-10 13:53:37 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-10 18:22:11 -0700 |
commit | 6845e5f094d67d45a6908e2cfdfed25476b8e343 (patch) | |
tree | f47779d04749a95a9e41b5527daef5f0075bb13e /remote_gcc_build.py | |
parent | cc4ef90ba831e8506dafcd2abcd7f9c93201cf9e (diff) | |
download | toolchain-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-x | remote_gcc_build.py | 5 |
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. |