Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: utils/invoke_dart.gni

Issue 2442513003: GN: Build the SDK with app snapshots instead of script snapshots. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
}
« utils/compiler/BUILD.gn ('K') | « utils/dartfmt/BUILD.gn ('k') | utils/pub/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698