Skip to content

Commit f4d9c95

Browse files
aamCommit Queue
authored and
Commit Queue
committed
[vm/dart2js] Add dart2js aot snapshot target to build scripts.
dart2js aot snapshot is used internally, so it makes sense to start building it externally to better understand its performance characteristics. This CL doesn't add aot snapshot to dart sdk. Change-Id: Id82a956138b118fb0a4bf0a16b1750e7bd4a801e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330664 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent e0fa7f9 commit f4d9c95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/compiler/BUILD.gn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import("../../sdk_args.gni")
66
import("../../utils/compile_platform.gni")
7+
import("../aot_snapshot.gni")
78
import("../application_snapshot.gni")
89
import("../create_timestamp.gni")
910

@@ -77,6 +78,13 @@ application_snapshot("dart2js") {
7778
]
7879
}
7980

81+
aot_snapshot("dart2js_aot") {
82+
deps = [ ":dart2js_create_snapshot_entry" ]
83+
84+
main_dart = "$target_gen_dir/dart2js.dart"
85+
name = "dart2js_aot"
86+
}
87+
8088
compile_platform("compile_dart2js_platform_unsound") {
8189
single_root_scheme = "org-dartlang-sdk"
8290
single_root_base = rebase_path("$sdk_root/")

0 commit comments

Comments
 (0)