[Web/DDC] - Convert the kernel_worker and dartdevc snapshots to an AOT snapshot
Converts kernel_worker.dart.snapshot and dartdevc.dart.snapshot to AOT snapshots. Fixes tests and paths in the code accordingly. TESTS=ci Change-Id: Ib99b2a3343e23252c3a6b5295b0d20f0f486aede Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381388 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
This commit is contained in:
@@ -2,9 +2,28 @@
|
||||
# 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("../../sdk_args.gni")
|
||||
import("../aot_snapshot.gni")
|
||||
import("../application_snapshot.gni")
|
||||
import("../create_timestamp.gni")
|
||||
|
||||
aot_snapshot("kernel_worker_aot") {
|
||||
main_dart = "kernel_worker.dart"
|
||||
name = "kernel_worker_aot"
|
||||
output = "$root_gen_dir/kernel_worker_aot.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 frontend_server_aot snapshot in an SDK build are
|
||||
# always compatible with each other.
|
||||
force_product_mode = !dart_debug
|
||||
}
|
||||
|
||||
# Generation of this JIT snapshot can be removed in Dart SDK version 3.7
|
||||
# Please see https://github.com/dart-lang/build/pull/3742 for more details
|
||||
application_snapshot("kernel_worker") {
|
||||
main_dart = "kernel_worker.dart"
|
||||
training_args = [ "--help" ]
|
||||
|
||||
+57
-8
@@ -3,7 +3,10 @@
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
import("../../build/dart/dart_action.gni")
|
||||
import("../../runtime/runtime_args.gni")
|
||||
import("../../sdk_args.gni")
|
||||
import("../../utils/compile_platform.gni")
|
||||
import("../aot_snapshot.gni")
|
||||
import("../application_snapshot.gni")
|
||||
import("../create_timestamp.gni")
|
||||
|
||||
@@ -15,6 +18,20 @@ sdk_full_unsound_dill = "$root_out_dir/ddc_platform_unsound.dill"
|
||||
sdk_root = "../../sdk"
|
||||
pkg_root = "../../pkg"
|
||||
|
||||
aot_snapshot("dartdevc_aot") {
|
||||
main_dart = "../../pkg/dev_compiler/bin/dartdevc.dart"
|
||||
name = "dartdevc_aot"
|
||||
output = "$root_gen_dir/dartdevc_aot.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
|
||||
}
|
||||
|
||||
application_snapshot("dartdevc") {
|
||||
main_dart = "../../pkg/dev_compiler/bin/dartdevc.dart"
|
||||
|
||||
@@ -346,19 +363,31 @@ template("package_kernel_outline") {
|
||||
|
||||
package_kernel_outline("expect_outline") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
sound_null_safety = true
|
||||
}
|
||||
|
||||
package_kernel_outline("expect_outline_unsound") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
sound_null_safety = false
|
||||
}
|
||||
|
||||
ddc_compile("expect_stable_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = false
|
||||
modules = [
|
||||
"amd",
|
||||
@@ -369,7 +398,11 @@ ddc_compile("expect_stable_js") {
|
||||
|
||||
ddc_compile("expect_canary_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = true
|
||||
modules = [ "amd" ]
|
||||
sound_null_safety = true
|
||||
@@ -377,7 +410,11 @@ ddc_compile("expect_canary_js") {
|
||||
|
||||
ddc_compile("expect_canary_ddc_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = true
|
||||
modules = [ "ddc" ]
|
||||
sound_null_safety = true
|
||||
@@ -385,7 +422,11 @@ ddc_compile("expect_canary_ddc_js") {
|
||||
|
||||
ddc_compile("expect_stable_unsound_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = false
|
||||
modules = [
|
||||
"amd",
|
||||
@@ -396,7 +437,11 @@ ddc_compile("expect_stable_unsound_js") {
|
||||
|
||||
ddc_compile("expect_canary_unsound_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = true
|
||||
modules = [ "amd" ]
|
||||
sound_null_safety = false
|
||||
@@ -404,7 +449,11 @@ ddc_compile("expect_canary_unsound_js") {
|
||||
|
||||
ddc_compile("expect_canary_unsound_ddc_js") {
|
||||
package = "expect"
|
||||
extra_libraries = [ "async_helper", "legacy/minitest", "legacy/async_minitest" ]
|
||||
extra_libraries = [
|
||||
"async_helper",
|
||||
"legacy/minitest",
|
||||
"legacy/async_minitest",
|
||||
]
|
||||
canary = true
|
||||
modules = [ "ddc" ]
|
||||
sound_null_safety = false
|
||||
|
||||
Reference in New Issue
Block a user