Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d71bfe5

Browse files
Only build a full Dart SDK when building for the host system (#8071)
1 parent de90dbf commit d71bfe5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/gn

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ def to_gn_args(args):
232232
if args.arm_float_abi:
233233
gn_args['arm_float_abi'] = args.arm_float_abi
234234

235-
# Switch flutter to full Dart SDK.
236-
gn_args['dart_platform_sdk'] = False
235+
# Switch flutter to full Dart SDK when building for the host system.
236+
if args.target_os is None:
237+
gn_args['dart_platform_sdk'] = False
237238

238239
return gn_args
239240

0 commit comments

Comments
 (0)