| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 | 5 |
| 6 """A tool to build chrome, executed by buildbot. | 6 """A tool to build chrome, executed by buildbot. |
| 7 | 7 |
| 8 When this is run, the current directory (cwd) should be the outer build | 8 When this is run, the current directory (cwd) should be the outer build |
| 9 directory (e.g., chrome-release/build/). | 9 directory (e.g., chrome-release/build/). |
| 10 | 10 |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 | 940 |
| 941 # For Linux, we also would like to use 10 * cpu. However, not sure | 941 # For Linux, we also would like to use 10 * cpu. However, not sure |
| 942 # backend resource is enough, so let me set Linux and Linux x64 builder | 942 # backend resource is enough, so let me set Linux and Linux x64 builder |
| 943 # only for now. | 943 # only for now. |
| 944 hostname = goma_utils.GetShortHostname() | 944 hostname = goma_utils.GetShortHostname() |
| 945 if hostname in ( | 945 if hostname in ( |
| 946 ['build14-m1', 'build48-m1'] + | 946 ['build14-m1', 'build48-m1'] + |
| 947 # Also increasing cpus for v8/blink trybots. | 947 # Also increasing cpus for v8/blink trybots. |
| 948 ['build%d-m4' % x for x in xrange(45, 48)] + | 948 ['build%d-m4' % x for x in xrange(45, 48)] + |
| 949 # Also increasing cpus for LTO buildbots. | 949 # Also increasing cpus for LTO buildbots. |
| 950 ['slave20-c1', 'slave33-c1']): | 950 ['slave%d-c1' % x for x in [20, 33] + range(78, 108)]): |
| 951 return min(10 * number_of_processors, 200) | 951 return min(10 * number_of_processors, 200) |
| 952 | 952 |
| 953 return 50 | 953 return 50 |
| 954 | 954 |
| 955 goma_jobs = determine_goma_jobs() | 955 goma_jobs = determine_goma_jobs() |
| 956 command.append('-j%d' % goma_jobs) | 956 command.append('-j%d' % goma_jobs) |
| 957 | 957 |
| 958 # Run the build. | 958 # Run the build. |
| 959 env.print_overrides() | 959 env.print_overrides() |
| 960 exit_status = chromium_utils.RunCommand(command, env=env) | 960 exit_status = chromium_utils.RunCommand(command, env=env) |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 sys.stderr.write('Unknown build tool %s.\n' % repr(options.build_tool)) | 1357 sys.stderr.write('Unknown build tool %s.\n' % repr(options.build_tool)) |
| 1358 return 2 | 1358 return 2 |
| 1359 | 1359 |
| 1360 options.target_output_dir = get_target_build_dir(args, options) | 1360 options.target_output_dir = get_target_build_dir(args, options) |
| 1361 | 1361 |
| 1362 return main(options, args) | 1362 return main(options, args) |
| 1363 | 1363 |
| 1364 | 1364 |
| 1365 if '__main__' == __name__: | 1365 if '__main__' == __name__: |
| 1366 sys.exit(real_main()) | 1366 sys.exit(real_main()) |
| OLD | NEW |