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

Side by Side Diff: tools/gn.py

Issue 2495003003: Adds some error handling to the socket implementation. (Closed)
Patch Set: Add perror calls for fcntl Created 4 years, 1 month 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 | « runtime/bin/socket_macos.cc ('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 # 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 # For Fuchsia support, the default is to not compile in the root 80 # For Fuchsia support, the default is to not compile in the root
81 # certificates. 81 # certificates.
82 gn_args['dart_use_fallback_root_certificates'] = True 82 gn_args['dart_use_fallback_root_certificates'] = True
83 83
84 gn_args['dart_zlib_path'] = "//runtime/bin/zlib" 84 gn_args['dart_zlib_path'] = "//runtime/bin/zlib"
85 85
86 # Use tcmalloc only when targeting Linux and when not using ASAN. 86 # Use tcmalloc only when targeting Linux and when not using ASAN.
87 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux' 87 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
88 and not args.asan) 88 and not args.asan)
89 89
90 if gn_args['target_cpu'].startswith('arm'): 90 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying
91 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn.
92 # TODO(zra): This will likely need some adjustment to build for armv6 etc.
93 hard_float = (gn_args['target_cpu'].startswith('arm') and
94 gn_args['target_os'] == 'linux')
95 if hard_float:
91 gn_args['arm_float_abi'] = 'hard' 96 gn_args['arm_float_abi'] = 'hard'
97 gn_args['arm_use_neon'] = True
92 98
93 gn_args['is_debug'] = mode == 'debug' 99 gn_args['is_debug'] = mode == 'debug'
94 gn_args['is_release'] = mode == 'release' 100 gn_args['is_release'] = mode == 'release'
95 gn_args['is_product'] = mode == 'product' 101 gn_args['is_product'] = mode == 'product'
96 gn_args['dart_debug'] = mode == 'debug' 102 gn_args['dart_debug'] = mode == 'debug'
97 103
98 # This setting is only meaningful for Flutter. Standalone builds of the VM 104 # This setting is only meaningful for Flutter. Standalone builds of the VM
99 # should leave this set to 'develop', which causes the build to defer to 105 # should leave this set to 'develop', which causes the build to defer to
100 # 'is_debug', 'is_release' and 'is_product'. 106 # 'is_debug', 'is_release' and 'is_product'.
101 gn_args['dart_runtime_mode'] = 'develop' 107 gn_args['dart_runtime_mode'] = 'develop'
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 return 1 346 return 1
341 347
342 endtime = time.time() 348 endtime = time.time()
343 if args.verbose: 349 if args.verbose:
344 print ("GN Time: %.3f seconds" % (endtime - starttime)) 350 print ("GN Time: %.3f seconds" % (endtime - starttime))
345 return 0 351 return 0
346 352
347 353
348 if __name__ == '__main__': 354 if __name__ == '__main__':
349 sys.exit(main(sys.argv)) 355 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « runtime/bin/socket_macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698