Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: third_party/binutils/download.py

Issue 908173002: Ignore unsupport host architectures for binutils download. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # vim: set ts=2 sw=2 et sts=2 ai: 5 # vim: set ts=2 sw=2 et sts=2 ai:
6 6
7 """Minimal tool to download binutils from Google storage. 7 """Minimal tool to download binutils from Google storage.
8 8
9 TODO(mithro): Replace with generic download_and_extract tool. 9 TODO(mithro): Replace with generic download_and_extract tool.
10 """ 10 """
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 arch = GetArch() 104 arch = GetArch()
105 if arch == 'x64': 105 if arch == 'x64':
106 return FetchAndExtract(arch) 106 return FetchAndExtract(arch)
107 if arch == 'ia32': 107 if arch == 'ia32':
108 ret = FetchAndExtract(arch) 108 ret = FetchAndExtract(arch)
109 if ret != 0: 109 if ret != 0:
110 return ret 110 return ret
111 # Fetch the x64 toolchain as well for official bots with 64-bit kernels. 111 # Fetch the x64 toolchain as well for official bots with 64-bit kernels.
112 return FetchAndExtract('x64') 112 return FetchAndExtract('x64')
113 print "Host architecture %s is not supported." % arch 113 return 0
114 return 1
115 114
116 115
117 if __name__ == '__main__': 116 if __name__ == '__main__':
118 sys.exit(main(sys.argv)) 117 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698