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

Side by Side Diff: components/cronet/tools/cr_cronet.py

Issue 2395603003: Add a ignore_elf32_limitations flag in build/config/compiler/compiler.gni (Closed)
Patch Set: address torne's comment to add is_clang Created 4 years, 2 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 | « build/config/compiler/compiler.gni ('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/python 1 #!/usr/bin/python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium 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 """ 6 """
7 cr_cronet.py - cr - like helper tool for cronet developers 7 cr_cronet.py - cr - like helper tool for cronet developers
8 """ 8 """
9 9
10 import argparse 10 import argparse
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 else: 94 else:
95 target_os = 'android' 95 target_os = 'android'
96 test_target = 'cronet_test_instrumentation_apk' 96 test_target = 'cronet_test_instrumentation_apk'
97 gn_args = 'use_errorprone_java_compiler=true arm_use_neon=false ' 97 gn_args = 'use_errorprone_java_compiler=true arm_use_neon=false '
98 gn_extra = '' 98 gn_extra = ''
99 out_dir_suffix = '' 99 out_dir_suffix = ''
100 100
101 gn_args += 'target_os="' + target_os + '" enable_websockets=false '+ \ 101 gn_args += 'target_os="' + target_os + '" enable_websockets=false '+ \
102 'disable_file_support=true disable_ftp_support=true '+ \ 102 'disable_file_support=true disable_ftp_support=true '+ \
103 'use_platform_icu_alternatives=true '+ \ 103 'use_platform_icu_alternatives=true '+ \
104 'disable_brotli_filter=true is_component_build=false' 104 'disable_brotli_filter=true is_component_build=false ' + \
105 'ignore_elf32_limitations=true'
105 106
106 extra_options = ' '.join(extra_options_list) 107 extra_options = ' '.join(extra_options_list)
107 if options.gn: 108 if options.gn:
108 out_dir_suffix += "-gn" 109 out_dir_suffix += "-gn"
109 110
110 if options.release: 111 if options.release:
111 out_dir = 'out/Release' + out_dir_suffix 112 out_dir = 'out/Release' + out_dir_suffix
112 release_arg = ' --release' 113 release_arg = ' --release'
113 gn_args += ' is_debug=false ' 114 gn_args += ' is_debug=false '
114 else: 115 else:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return test_ios(out_dir, extra_options) 147 return test_ios(out_dir, extra_options)
147 if (options.command=='build-test'): 148 if (options.command=='build-test'):
148 return build(out_dir, test_target) or test_ios(out_dir, extra_options) 149 return build(out_dir, test_target) or test_ios(out_dir, extra_options)
149 150
150 parser.print_help() 151 parser.print_help()
151 return 1 152 return 1
152 153
153 154
154 if __name__ == '__main__': 155 if __name__ == '__main__':
155 sys.exit(main()) 156 sys.exit(main())
OLDNEW
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698