Index: tools/gn.py |
diff --git a/tools/gn.py b/tools/gn.py |
index 5972295692541c14a777e130559c371e80c27466..d3d5f6aeaa52e1fcbdfb9d79cf54112a9f6d38d5 100755 |
--- a/tools/gn.py |
+++ b/tools/gn.py |
@@ -129,6 +129,13 @@ def ToGnArgs(args, mode, arch, target_os): |
# dart_bootstrap if the prebuilt SDK doesn't work. |
gn_args['dart_host_pub_exe'] = "" |
+ if arch != HostCpuForArch(arch): |
+ # Training an app-jit snapshot under a simulator is slow. Use script |
+ # snapshots instead. |
+ gn_args['dart_snapshot_kind'] = 'script' |
+ else: |
+ gn_args['dart_snapshot_kind'] = 'app-jit' |
+ |
# We only want the fallback root certs in the standalone VM on |
# Linux and Windows. |
if gn_args['target_os'] in ['linux', 'win']: |