| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 import optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 if HOST_OS == 'freebsd': | 417 if HOST_OS == 'freebsd': |
| 418 make = 'gmake' | 418 make = 'gmake' |
| 419 # work around lack of flock | 419 # work around lack of flock |
| 420 os.environ['LINK'] = '$(CXX)' | 420 os.environ['LINK'] = '$(CXX)' |
| 421 args = [make, | 421 args = [make, |
| 422 '-j', | 422 '-j', |
| 423 options.j, | 423 options.j, |
| 424 'BUILDTYPE=' + build_config, | 424 'BUILDTYPE=' + build_config, |
| 425 ] | 425 ] |
| 426 if target_os != HOST_OS: | 426 if target_os != HOST_OS: |
| 427 args += ['builddir_name=' + utils.GetBuildDir(HOST_OS, target_os)] | 427 args += ['builddir_name=' + utils.GetBuildDir(HOST_OS)] |
| 428 if options.verbose: | 428 if options.verbose: |
| 429 args += ['V=1'] | 429 args += ['V=1'] |
| 430 | 430 |
| 431 args += [target] | 431 args += [target] |
| 432 | 432 |
| 433 toolsOverride = None | 433 toolsOverride = None |
| 434 if override_tools: | 434 if override_tools: |
| 435 toolsOverride = SetTools(arch, target_os, options) | 435 toolsOverride = SetTools(arch, target_os, options) |
| 436 if toolsOverride: | 436 if toolsOverride: |
| 437 for k, v in toolsOverride.iteritems(): | 437 for k, v in toolsOverride.iteritems(): |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 else: | 534 else: |
| 535 if BuildOneConfig(options, target, target_os, | 535 if BuildOneConfig(options, target, target_os, |
| 536 mode, arch, cross_build) != 0: | 536 mode, arch, cross_build) != 0: |
| 537 return 1 | 537 return 1 |
| 538 | 538 |
| 539 return 0 | 539 return 0 |
| 540 | 540 |
| 541 | 541 |
| 542 if __name__ == '__main__': | 542 if __name__ == '__main__': |
| 543 sys.exit(Main()) | 543 sys.exit(Main()) |
| OLD | NEW |