1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00

When building app snapshots for the SDK, train dart2js on itself.

Don't train the analzyer on itself as this makes running the test suite slower.

Disable code collection when generating an app snapshot.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2509453002 .
This commit is contained in:
Ryan Macnak 2016-11-16 09:10:22 -08:00
parent 7ea4a11146
commit 13ba4b2710
2 changed files with 3 additions and 1 deletions

View File

@ -1862,6 +1862,7 @@ void main(int argc, char** argv) {
if (gen_snapshot_kind == kAppJIT) {
vm_options.AddArgument("--fields_may_be_reset");
vm_options.AddArgument("--collect_code=false");
}
if ((gen_snapshot_kind == kAppAOT) || is_noopt) {
vm_options.AddArgument("--precompilation");

View File

@ -62,7 +62,8 @@ application_snapshot("dart2js") {
main_dart = "$root_gen_dir/dart2js.dart"
training_args = [
"--library-root=" + rebase_path("../../sdk"),
rebase_path("../../tests/language/first_test.dart"),
"--categories=all",
rebase_path("$root_gen_dir/dart2js.dart"),
]
}