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

Side by Side Diff: tools/gn.py

Issue 2456463003: GN: Fix arm cross build to match gyp build (Closed)
Patch Set: 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 | « build/toolchain/linux/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 # 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 # For Fuchsia support, the default is to not compile in the root 84 # For Fuchsia support, the default is to not compile in the root
85 # certificates. 85 # certificates.
86 gn_args['dart_use_fallback_root_certificates'] = True 86 gn_args['dart_use_fallback_root_certificates'] = True
87 87
88 gn_args['dart_zlib_path'] = "//runtime/bin/zlib" 88 gn_args['dart_zlib_path'] = "//runtime/bin/zlib"
89 89
90 # Use tcmalloc only when targeting Linux and when not using ASAN. 90 # Use tcmalloc only when targeting Linux and when not using ASAN.
91 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux' 91 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
92 and not args.asan) 92 and not args.asan)
93 93
94 gn_args['arm_float_abi'] = 'hard'
95
94 gn_args['is_debug'] = mode == 'debug' 96 gn_args['is_debug'] = mode == 'debug'
95 gn_args['is_release'] = mode == 'release' 97 gn_args['is_release'] = mode == 'release'
96 gn_args['is_product'] = mode == 'product' 98 gn_args['is_product'] = mode == 'product'
97 gn_args['dart_debug'] = mode == 'debug' 99 gn_args['dart_debug'] = mode == 'debug'
98 100
99 # This setting is only meaningful for Flutter. Standalone builds of the VM 101 # This setting is only meaningful for Flutter. Standalone builds of the VM
100 # should leave this set to 'develop', which causes the build to defer to 102 # should leave this set to 'develop', which causes the build to defer to
101 # 'is_debug', 'is_release' and 'is_product'. 103 # 'is_debug', 'is_release' and 'is_product'.
102 gn_args['dart_runtime_mode'] = 'develop' 104 gn_args['dart_runtime_mode'] = 'develop'
103 105
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return 1 315 return 1
314 316
315 endtime = time.time() 317 endtime = time.time()
316 if args.verbose: 318 if args.verbose:
317 print ("GN Time: %.3f seconds" % (endtime - starttime)) 319 print ("GN Time: %.3f seconds" % (endtime - starttime))
318 return 0 320 return 0
319 321
320 322
321 if __name__ == '__main__': 323 if __name__ == '__main__':
322 sys.exit(main(sys.argv)) 324 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/toolchain/linux/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698