OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Dart project authors. All rights reserved. | 2 # Copyright 2016 The Dart project 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 import argparse | 6 import argparse |
7 import multiprocessing | 7 import multiprocessing |
8 import os | 8 import os |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 | 136 |
137 # Use tcmalloc only when targeting Linux and when not using ASAN. | 137 # Use tcmalloc only when targeting Linux and when not using ASAN. |
138 gn_args['dart_use_tcmalloc'] = ((gn_args['target_os'] == 'linux') | 138 gn_args['dart_use_tcmalloc'] = ((gn_args['target_os'] == 'linux') |
139 and not args.asan | 139 and not args.asan |
140 and not args.msan | 140 and not args.msan |
141 and not args.tsan) | 141 and not args.tsan) |
142 | 142 |
143 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying | 143 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying |
144 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn. | 144 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn. |
145 # TODO(zra): This will likely need some adjustment to build for armv6 etc. | 145 # TODO(zra): This will likely need some adjustment to build for armv6 etc. |
146 hard_float = (gn_args['target_cpu'].startswith('arm') and | 146 hard_float = ((gn_args['target_cpu'] == 'arm') and |
zra
2017/01/18 03:21:33
Add a TODO that this will need to change if we wan
rmacnak
2017/01/20 22:54:47
Added branches that throw with an unimplemented me
| |
147 (gn_args['target_os'] == 'linux')) | 147 (gn_args['target_os'] == 'linux')) |
148 if hard_float: | 148 if hard_float: |
149 gn_args['arm_float_abi'] = 'hard' | 149 gn_args['arm_float_abi'] = 'hard' |
150 gn_args['arm_use_neon'] = True | 150 gn_args['arm_use_neon'] = True |
151 | 151 |
152 gn_args['is_debug'] = mode == 'debug' | 152 gn_args['is_debug'] = mode == 'debug' |
153 gn_args['is_release'] = mode == 'release' | 153 gn_args['is_release'] = mode == 'release' |
154 gn_args['is_product'] = mode == 'product' | 154 gn_args['is_product'] = mode == 'product' |
155 gn_args['dart_debug'] = mode == 'debug' | 155 gn_args['dart_debug'] = mode == 'debug' |
156 | 156 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
416 return 1 | 416 return 1 |
417 | 417 |
418 endtime = time.time() | 418 endtime = time.time() |
419 if args.verbose: | 419 if args.verbose: |
420 print ("GN Time: %.3f seconds" % (endtime - starttime)) | 420 print ("GN Time: %.3f seconds" % (endtime - starttime)) |
421 return 0 | 421 return 0 |
422 | 422 |
423 | 423 |
424 if __name__ == '__main__': | 424 if __name__ == '__main__': |
425 sys.exit(main(sys.argv)) | 425 sys.exit(main(sys.argv)) |
OLD | NEW |