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

Side by Side Diff: buildbot/buildbot_lib.py

Issue 10831270: Eliminate build differences in nacl gated on nacl_standalone. Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « build/gyp_nacl ('k') | buildbot/buildbot_selector.py » ('j') | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client 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 # Enable 'with' statements in Python 2.5 6 # Enable 'with' statements in Python 2.5
7 from __future__ import with_statement 7 from __future__ import with_statement
8 8
9 import optparse 9 import optparse
10 import os.path 10 import os.path
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 # ASan is Clang, so set the flag to simplify other checks. 77 # ASan is Clang, so set the flag to simplify other checks.
78 context['clang'] = options.clang or options.asan 78 context['clang'] = options.clang or options.asan
79 context['validator'] = options.validator 79 context['validator'] = options.validator
80 context['asan'] = options.asan 80 context['asan'] = options.asan
81 # TODO(ncbray) turn derived values into methods. 81 # TODO(ncbray) turn derived values into methods.
82 context['gyp_mode'] = {'opt': 'Release', 'dbg': 'Debug'}[mode] 82 context['gyp_mode'] = {'opt': 'Release', 'dbg': 'Debug'}[mode]
83 context['gyp_arch'] = {'32': 'ia32', '64': 'x64'}[bits] 83 context['gyp_arch'] = {'32': 'ia32', '64': 'x64'}[bits]
84 context['gyp_vars'] = [] 84 context['gyp_vars'] = []
85 if context['clang']: 85 if context['clang']:
86 context['gyp_vars'].append('clang=1') 86 context['gyp_vars'].append('clang=1')
87 else:
88 context['gyp_vars'].append('clang=0')
87 if context['asan']: 89 if context['asan']:
88 context['gyp_vars'].append('asan=1') 90 context['gyp_vars'].append('asan=1')
89 context['vc_arch'] = {'32': 'x86', '64': 'x64'}[bits] 91 context['vc_arch'] = {'32': 'x86', '64': 'x64'}[bits]
90 context['default_scons_platform'] = 'x86-'+bits 92 context['default_scons_platform'] = 'x86-'+bits
91 context['default_scons_mode'] = [mode + '-host', 'nacl'] 93 context['default_scons_mode'] = [mode + '-host', 'nacl']
92 context['use_glibc'] = clib == 'glibc' 94 context['use_glibc'] = clib == 'glibc'
93 context['max_jobs'] = 8 95 context['max_jobs'] = 8
94 context['dry_run'] = options.dry_run 96 context['dry_run'] = options.dry_run
95 context['inside_toolchain'] = options.inside_toolchain 97 context['inside_toolchain'] = options.inside_toolchain
96 context['step_suffix'] = options.step_suffix 98 context['step_suffix'] = options.step_suffix
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 452
451 # Workaround for an annotator bug. 453 # Workaround for an annotator bug.
452 # TODO(bradnelson@google.com) remove when the bug is fixed. 454 # TODO(bradnelson@google.com) remove when the bug is fixed.
453 if status.ever_failed: 455 if status.ever_failed:
454 with Step('summary', status): 456 with Step('summary', status):
455 print 'There were failed stages.' 457 print 'There were failed stages.'
456 458
457 # Display a summary of the build. Useful when running outside the buildbot. 459 # Display a summary of the build. Useful when running outside the buildbot.
458 status.DisplayBuildStatus() 460 status.DisplayBuildStatus()
459 sys.exit(status.ReturnValue()) 461 sys.exit(status.ReturnValue())
OLDNEW
« no previous file with comments | « build/gyp_nacl ('k') | buildbot/buildbot_selector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698