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

Side by Side Diff: tools/gn.py

Issue 2536273002: GN: Reset default for fallback root certs to false. (Closed)
Patch Set: Created 4 years 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/secure_socket_boringssl.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 gn_args['dart_target_arch'] = arch 71 gn_args['dart_target_arch'] = arch
72 gn_args['target_cpu'] = target_cpu_for_arch(arch, target_os) 72 gn_args['target_cpu'] = target_cpu_for_arch(arch, target_os)
73 gn_args['host_cpu'] = host_cpu_for_arch(arch) 73 gn_args['host_cpu'] = host_cpu_for_arch(arch)
74 74
75 # See: runtime/observatory/BUILD.gn. 75 # See: runtime/observatory/BUILD.gn.
76 # This allows the standalone build of the observatory to fall back on 76 # This allows the standalone build of the observatory to fall back on
77 # dart_bootstrap if the prebuilt SDK doesn't work. 77 # dart_bootstrap if the prebuilt SDK doesn't work.
78 gn_args['dart_host_pub_exe'] = "" 78 gn_args['dart_host_pub_exe'] = ""
79 79
80 # We only want the fallback root certs in the standalone VM on
81 # Linux and Windows.
82 if gn_args['target_os'] in ['linux', 'win']:
83 gn_args['dart_use_fallback_root_certificates'] = True
84
80 gn_args['dart_zlib_path'] = "//runtime/bin/zlib" 85 gn_args['dart_zlib_path'] = "//runtime/bin/zlib"
81 86
82 # Use tcmalloc only when targeting Linux and when not using ASAN. 87 # Use tcmalloc only when targeting Linux and when not using ASAN.
83 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux' 88 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
84 and not args.asan) 89 and not args.asan)
85 90
86 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying 91 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying
87 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn. 92 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn.
88 # TODO(zra): This will likely need some adjustment to build for armv6 etc. 93 # TODO(zra): This will likely need some adjustment to build for armv6 etc.
89 hard_float = (gn_args['target_cpu'].startswith('arm') and 94 hard_float = (gn_args['target_cpu'].startswith('arm') and
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 return 1 348 return 1
344 349
345 endtime = time.time() 350 endtime = time.time()
346 if args.verbose: 351 if args.verbose:
347 print ("GN Time: %.3f seconds" % (endtime - starttime)) 352 print ("GN Time: %.3f seconds" % (endtime - starttime))
348 return 0 353 return 0
349 354
350 355
351 if __name__ == '__main__': 356 if __name__ == '__main__':
352 sys.exit(main(sys.argv)) 357 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket_boringssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698