From b30b174aaac34e2db920cb0cfee36744e073d6aa Mon Sep 17 00:00:00 2001 From: Christopher Fujino Date: Wed, 31 Mar 2021 12:54:02 -0700 Subject: [PATCH] build dart2js on linux arm host (flutter/engine#25312) --- engine/src/flutter/tools/gn | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 3fab26f11c3..33e611fcc65 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -287,10 +287,11 @@ def to_gn_args(args): if args.arm_float_abi: gn_args['arm_float_abi'] = args.arm_float_abi - # Whether to build trained Dart SDK snapshots of dart2js and dartdevc, - # including the web sdk kernel and source files. - if args.target_os is None: - # dart_platform_sdk is not declared for Android targets. + # dart_platform_sdk is only defined for host builds, linux arm host builds + # specify target_os=linux + if args.target_os is None or args.target_os == 'linux': + # dart_platform_sdk=True means exclude web-related files, e.g. dart2js, + # dartdevc, web SDK kernel and source files. gn_args['dart_platform_sdk'] = not args.full_dart_sdk gn_args['full_dart_sdk'] = args.full_dart_sdk