Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sky/tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ def to_gn_args(args):
if aot:
gn_args['dart_target_arch'] = gn_args['target_cpu']

gn_args['dart_experimental_interpreter'] = args.runtime_mode == 'debug'
# On iOS Devices, use the Dart bytecode interpreter so we don't incur
# snapshotting and linking costs of the precompiler during development.
# We can still use the JIT on the simulator though.
use_dbc = args.target_os == 'ios' and not args.simulator and args.runtime_mode == 'debug'
gn_args['dart_experimental_interpreter'] = use_dbc

gn_args['flutter_product_mode'] = (gn_args['dart_runtime_mode'] == 'release')

Expand Down