mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +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:
parent
7ea4a11146
commit
13ba4b2710
|
@ -1862,6 +1862,7 @@ void main(int argc, char** argv) {
|
||||||
|
|
||||||
if (gen_snapshot_kind == kAppJIT) {
|
if (gen_snapshot_kind == kAppJIT) {
|
||||||
vm_options.AddArgument("--fields_may_be_reset");
|
vm_options.AddArgument("--fields_may_be_reset");
|
||||||
|
vm_options.AddArgument("--collect_code=false");
|
||||||
}
|
}
|
||||||
if ((gen_snapshot_kind == kAppAOT) || is_noopt) {
|
if ((gen_snapshot_kind == kAppAOT) || is_noopt) {
|
||||||
vm_options.AddArgument("--precompilation");
|
vm_options.AddArgument("--precompilation");
|
||||||
|
|
|
@ -62,7 +62,8 @@ application_snapshot("dart2js") {
|
||||||
main_dart = "$root_gen_dir/dart2js.dart"
|
main_dart = "$root_gen_dir/dart2js.dart"
|
||||||
training_args = [
|
training_args = [
|
||||||
"--library-root=" + rebase_path("../../sdk"),
|
"--library-root=" + rebase_path("../../sdk"),
|
||||||
rebase_path("../../tests/language/first_test.dart"),
|
"--categories=all",
|
||||||
|
rebase_path("$root_gen_dir/dart2js.dart"),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue