Use fallback root certificates on Windows host builds (flutter/engine#4662)
* Use fallback root certificats on Windows, Linux host builds * Use fallback only on Windows
This commit is contained in:
committed by
GitHub
parent
7b61378b7e
commit
952f395ae5
@@ -131,6 +131,11 @@ def to_gn_args(args):
|
||||
if 'target_cpu' in gn_args:
|
||||
gn_args['target_cpu'] = cpu_for_target_arch(gn_args['target_cpu'])
|
||||
|
||||
if args.target_os is None:
|
||||
if sys.platform.startswith(('cygwin', 'win')):
|
||||
gn_args['dart_use_fallback_root_certificates'] = True
|
||||
|
||||
|
||||
# Make sure host_cpu matches the bit width of target_cpu.
|
||||
target_is_32_bit = gn_args['target_cpu'] == 'arm' or gn_args['target_cpu'] == 'x86'
|
||||
if target_is_32_bit:
|
||||
|
||||
Reference in New Issue
Block a user