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

Side by Side Diff: tools/build.py

Issue 2797303005: [infra] Fixes for cross-toolchains (Closed)
Patch Set: Roll boringssl_gen and remove bad assert Created 3 years, 8 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 | « third_party/tcmalloc/BUILD.gn ('k') | 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 # 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 def ProcessOptions(options, args): 100 def ProcessOptions(options, args):
101 if options.arch == 'all': 101 if options.arch == 'all':
102 options.arch = 'ia32,x64,simarm,simarm64,simmips,simdbc64' 102 options.arch = 'ia32,x64,simarm,simarm64,simmips,simdbc64'
103 if options.mode == 'all': 103 if options.mode == 'all':
104 options.mode = 'debug,release,product' 104 options.mode = 'debug,release,product'
105 if options.os == 'all': 105 if options.os == 'all':
106 options.os = 'host,android' 106 options.os = 'host,android'
107 options.mode = options.mode.split(',') 107 options.mode = options.mode.split(',')
108 options.arch = options.arch.split(',') 108 options.arch = options.arch.split(',')
109 options.os = options.os.split(',') 109 options.os = options.os.split(',')
110 if not options.gyp and options.toolchain != None:
111 print "The --toolchain flag is only supported by the gyp build."
112 print "When using the GN build, set the toolchain and sysroot using gn.py."
113 return False
110 for mode in options.mode: 114 for mode in options.mode:
111 if not mode in ['debug', 'release', 'product']: 115 if not mode in ['debug', 'release', 'product']:
112 print "Unknown mode %s" % mode 116 print "Unknown mode %s" % mode
113 return False 117 return False
114 for arch in options.arch: 118 for arch in options.arch:
115 archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv6', 'armv6', 119 archs = ['ia32', 'x64', 'simarm', 'arm', 'simarmv6', 'armv6',
116 'simarmv5te', 'armv5te', 'simmips', 'mips', 'simarm64', 'arm64', 120 'simarmv5te', 'armv5te', 'simmips', 'mips', 'simarm64', 'arm64',
117 'simdbc', 'simdbc64', 'armsimdbc', 'armsimdbc64'] 121 'simdbc', 'simdbc64', 'armsimdbc', 'armsimdbc64']
118 if not arch in archs: 122 if not arch in archs:
119 print "Unknown arch %s" % arch 123 print "Unknown arch %s" % arch
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 else: 649 else:
646 if BuildOneConfig(options, target, target_os, 650 if BuildOneConfig(options, target, target_os,
647 mode, arch, cross_build) != 0: 651 mode, arch, cross_build) != 0:
648 return 1 652 return 1
649 653
650 return 0 654 return 0
651 655
652 656
653 if __name__ == '__main__': 657 if __name__ == '__main__':
654 sys.exit(Main()) 658 sys.exit(Main())
OLDNEW
« no previous file with comments | « third_party/tcmalloc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698