1e148e651b
the dds snapshot) Reland "[SDK] Switch dds and dtd to use an AOT snapshot" This reverts commit11ab2dfe2f. Reason for revert: Fixes the problem that is causing Flutter G3 roll to fail. TEST=ci Original change's description: > Revert "[SDK] Switch dds and dtd to use an AOT snapshot" > > This reverts commit6450d76f1f. > > Reason for revert: Breaking Flutter G3 roll > > Original change's description: > > [SDK] Switch dds and dtd to use an AOT snapshot > > > > TEST=ci > > > > Change-Id: Ib65ca1d1a05d3bc7b5f5cab25d90fc459ec8d853 > > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/387133 > > Reviewed-by: Ben Konyi <bkonyi@google.com> > > Commit-Queue: Siva Annamalai <asiva@google.com> > > Change-Id: I9985919063cacfc8673b3e2946eaa163e90c9cc3 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/411200 > Auto-Submit: Ben Konyi <bkonyi@google.com> > Reviewed-by: Siva Annamalai <asiva@google.com> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Commit-Queue: Siva Annamalai <asiva@google.com> Change-Id: I5ec8e58f905b4ad1d22d507acd8e22e676dc5532 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/410921 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Brian Quinlan <bquinlan@google.com>
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
import("../../runtime/runtime_args.gni")
|
|
import("../aot_snapshot.gni")
|
|
import("../application_snapshot.gni")
|
|
|
|
group("dtd_aot") {
|
|
public_deps = [
|
|
":dtd_aot_product_snapshot",
|
|
":dtd_aot_snapshot",
|
|
]
|
|
}
|
|
|
|
aot_snapshot("dtd_aot_snapshot") {
|
|
main_dart = "../../pkg/dtd_impl/bin/dtd.dart"
|
|
output = "$root_out_dir/dart_tooling_daemon_aot.dart.snapshot"
|
|
}
|
|
|
|
aot_snapshot("dtd_aot_product_snapshot") {
|
|
main_dart = "../../pkg/dtd_impl/bin/dtd.dart"
|
|
output = "$root_out_dir/dart_tooling_daemon_aot_product.dart.snapshot"
|
|
|
|
# dartaotruntime has dart_product_config applied to it,
|
|
# so it is built in product mode in both release and
|
|
# product builds, and is only built in debug mode in debug
|
|
# builds. The following line ensures that the dartaotruntime
|
|
# and dartdevc_aot snapshot in an SDK build are
|
|
# always compatible with each other.
|
|
force_product_mode = !dart_debug
|
|
}
|
|
|
|
group("dtd") {
|
|
public_deps = [ ":copy_dtd_snapshot" ]
|
|
}
|
|
|
|
copy("copy_dtd_snapshot") {
|
|
visibility = [ ":dtd" ]
|
|
public_deps = [ ":generate_dtd_snapshot" ]
|
|
sources = [ "$root_gen_dir/dart_tooling_daemon.dart.snapshot" ]
|
|
outputs = [ "$root_out_dir/dart_tooling_daemon.dart.snapshot" ]
|
|
}
|
|
|
|
application_snapshot("generate_dtd_snapshot") {
|
|
main_dart = "../../pkg/dtd_impl/bin/dtd.dart"
|
|
training_args = [ "--train" ]
|
|
|
|
vm_args = []
|
|
output = "$root_gen_dir/dart_tooling_daemon.dart.snapshot"
|
|
}
|