Files
sdk/utils/bazel/BUILD.gn
T
asiva f81a402aa1 "[SDK/VM] - Rename dart_precompiled_runtime to dartaotruntime, ensures we have a uniform name for the executable between the build directories and the SDK directory"
Fixed golem breakage by temporarily copying dartaotruntime to dart_precompiled_runtime

This reverts commit 75e6a748f7.

TEST=ci

Original change's description:
> Revert "[SDK/VM] - Rename dart_precompiled_runtime to dartaotruntime, ensures we have a uniform name for the executable between the build directories and the SDK directory"
>
> This reverts commit 1b331d05c2.
>
> Reason for revert: golem builds are failing
>
> Original change's description:
> > [SDK/VM] - Rename dart_precompiled_runtime to dartaotruntime, ensures we have a uniform name for the executable between the build directories and the SDK directory
> >
> > TEST=ci
> >

Change-Id: Id0f383eabb496c06c0acebc639c8e3b056ba82d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393781
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-11-06 03:10:31 +00:00

42 lines
1.5 KiB
Plaintext

# Copyright (c) 2017, 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("../../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"
}
aot_snapshot("kernel_worker_aot_product") {
main_dart = "kernel_worker.dart"
name = "kernel_worker_aot_product"
output = "$root_gen_dir/kernel_worker_aot_product.dart.snapshot"
# dartaotruntime in the dart SDK 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" ]
}
create_timestamp_file("kernel_worker_files_stamp") {
path = rebase_path("kernel_worker.dart")
output = "$target_gen_dir/kernel_worker.stamp"
}