未验证 提交 981ebb5e 编写于 作者: A Alexander Aprelev 提交者: GitHub

Use fallback root certificates on Windows host builds (#4662)

* Use fallback root certificats on Windows, Linux host builds

* Use fallback only on Windows
上级 e5a597fb
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册