Index: components/cronet/tools/cr_cronet.py |
diff --git a/components/cronet/tools/cr_cronet.py b/components/cronet/tools/cr_cronet.py |
index 69db170dfcc2387b5d97806fb113d197ab41c772..579fc71893a91ef8b55267480d74c9ec650c833b 100755 |
--- a/components/cronet/tools/cr_cronet.py |
+++ b/components/cronet/tools/cr_cronet.py |
@@ -79,12 +79,14 @@ def main(): |
if is_os: |
target_os = 'ios' |
test_target = 'cronet_test' |
- gn_args = 'target_cpu = "x64" ' |
+ gn_args = 'is_cronet_build=true is_component_build=false ' |
gn_extra = '--ide=xcode' |
- out_dir_suffix = '-iphonesimulator' |
if options.iphoneos: |
- gn_args = 'target_cpu = "arm64" ' |
+ gn_args += ' target_cpu="arm64" ' |
out_dir_suffix = '-iphoneos' |
+ else: |
+ gn_args += ' target_cpu="x64" ' |
+ out_dir_suffix = '-iphonesimulator' |
else: |
target_os = 'android' |
test_target = 'cronet_test_instrumentation_apk' |