Index: utils/invoke_dart.gni |
diff --git a/utils/invoke_dart.gni b/utils/invoke_dart.gni |
index 66705f712b2e50a6f55a8f0a435560dc8126713a..e300cdb3c5dc6479d788106b60d18d14d9b7b163 100644 |
--- a/utils/invoke_dart.gni |
+++ b/utils/invoke_dart.gni |
@@ -50,7 +50,9 @@ template("invoke_dart") { |
template("application_snapshot") { |
assert(defined(invoker.main_dart), "Must specify 'main_dart'") |
+ assert(defined(invoker.training_args), "Must specify 'training_args'") |
main_dart = invoker.main_dart |
+ training_args = invoker.training_args |
name = target_name |
if (defined(invoker.name)) { |
name = invoker.name |
@@ -85,7 +87,8 @@ template("application_snapshot") { |
args = [ |
"--packages=$dot_packages", |
"--snapshot=$abs_output", |
- main_file |
- ] |
+ "--snapshot-kind=app-jit", |
+ main_file, |
+ ] + training_args |
} |
} |