Skip to content

Commit

Permalink
[Cronet] Use xcode clang on iOS to reduce release binary size.
Browse files Browse the repository at this point in the history
BUG=666502
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester

Review-Url: https://codereview.chromium.org/2614423002
Cr-Commit-Position: refs/heads/master@{#471077}
  • Loading branch information
mef authored and Commit bot committed May 11, 2017
1 parent a8da913 commit 970e267
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion components/cronet/tools/cr_cronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def main():
if is_os:
target_os = 'ios'
test_target = 'cronet_test'
gn_args = 'is_cronet_build=true is_component_build=false '
gn_args = 'is_cronet_build=true is_component_build=false ' \
'use_xcode_clang=true '
gn_extra = '--ide=xcode'
if options.iphoneos:
gn_args += ' target_cpu="arm64" '
Expand Down
4 changes: 2 additions & 2 deletions components/cronet/tools/package_ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def package_ios_framework_using_gn(out_dir='out/Framework', extra_options=''):
# Package all builds in the output directory
os.makedirs(out_dir)
build_dir = ''
for (build_config, gn_extra_args) in [('Debug', 'is_debug=true'),
('Release', 'is_debug=false enable_stripping=true')]:
for (build_config, gn_extra_args) in [('Debug', 'is_debug=true use_xcode_clang=true'),
('Release', 'is_debug=false enable_stripping=true is_official_build=true')]:
for (target_device, target_cpu, additional_cpu) in [('os', 'arm', 'arm64'),
('simulator', 'x86', 'x64')]:
target_dir = '%s-iphone%s' % (build_config, target_device)
Expand Down

0 comments on commit 970e267

Please sign in to comment.