From 3c6dd9a78dac653c826e5952457a6cf3d02e2852 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 7 Mar 2019 11:44:00 -0800 Subject: [PATCH] Only build a full Dart SDK when building for the host system (flutter/engine#8071) --- engine/src/flutter/tools/gn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 8cf8af92d3..ee784e5300 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -232,8 +232,9 @@ def to_gn_args(args): if args.arm_float_abi: gn_args['arm_float_abi'] = args.arm_float_abi - # Switch flutter to full Dart SDK. - gn_args['dart_platform_sdk'] = False + # Switch flutter to full Dart SDK when building for the host system. + if args.target_os is None: + gn_args['dart_platform_sdk'] = False return gn_args