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: tools/build.py

Issue 9581037: Disable build of simarm from the -arch=all configuration. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « no previous file | tools/testing/dart/test_options.dart » ('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/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, 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 shutil 10 import shutil
(...skipping 23 matching lines...) Expand all
34 metavar=HOST_CPUS, 34 metavar=HOST_CPUS,
35 default=str(HOST_CPUS)) 35 default=str(HOST_CPUS))
36 result.add_option("--devenv", 36 result.add_option("--devenv",
37 help='Path containing devenv.com on Windows', 37 help='Path containing devenv.com on Windows',
38 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E') 38 default='C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\ID E')
39 return result 39 return result
40 40
41 41
42 def ProcessOptions(options): 42 def ProcessOptions(options):
43 if options.arch == 'all': 43 if options.arch == 'all':
44 options.arch = 'ia32,x64,simarm' 44 options.arch = 'ia32,x64'
45 if options.mode == 'all': 45 if options.mode == 'all':
46 options.mode = 'release,debug' 46 options.mode = 'release,debug'
47 options.mode = options.mode.split(',') 47 options.mode = options.mode.split(',')
48 options.arch = options.arch.split(',') 48 options.arch = options.arch.split(',')
49 for mode in options.mode: 49 for mode in options.mode:
50 if not mode in ['debug', 'release']: 50 if not mode in ['debug', 'release']:
51 print "Unknown mode %s" % mode 51 print "Unknown mode %s" % mode
52 return False 52 return False
53 for arch in options.arch: 53 for arch in options.arch:
54 if not arch in ['ia32', 'x64', 'simarm', 'arm']: 54 if not arch in ['ia32', 'x64', 'simarm', 'arm']:
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 process.wait() 160 process.wait()
161 if process.returncode != 0: 161 if process.returncode != 0:
162 print "BUILD FAILED" 162 print "BUILD FAILED"
163 return 1 163 return 1
164 164
165 return 0 165 return 0
166 166
167 167
168 if __name__ == '__main__': 168 if __name__ == '__main__':
169 sys.exit(Main()) 169 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698