From cc46252520199840cc63d2e0812730a80d9b1062 Mon Sep 17 00:00:00 2001 From: Siva Annamalai Date: Mon, 18 Nov 2024 21:40:36 +0000 Subject: [PATCH] Revert "[SDK] Remove build rule for dart_precompiled_runtime" This reverts commit c65057eda0b6ac12f8a8c387a7990f44c807b7b2. Reason for revert: golem build breakage Original change's description: > [SDK] Remove build rule for dart_precompiled_runtime > > TEST=ci > > Change-Id: I2fa2de462a9170941ed9201ba14182d490de65cb > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/395683 > Reviewed-by: Alexander Aprelev > Commit-Queue: Siva Annamalai Change-Id: Iba090f1c62468d2cdbce51f9fbfc5102fc4d37d6 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396161 Auto-Submit: Siva Annamalai Commit-Queue: Alexander Aprelev Reviewed-by: Alexander Aprelev Bot-Commit: Rubber Stamper --- runtime/bin/BUILD.gn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn index 135eac8c9a4..22e3c619dec 100644 --- a/runtime/bin/BUILD.gn +++ b/runtime/bin/BUILD.gn @@ -903,6 +903,23 @@ dart_executable("dart") { } } +# This rule is here to ensure benchmark suites do not break, it can be +# removed once the benchmark suites are updated. +group("dart_precompiled_runtime") { + deps = [ + ":copy_dart_precompiled_runtime", + ":dartaotruntime", + ] +} + +copy("copy_dart_precompiled_runtime") { + visibility = [ ":dart_precompiled_runtime" ] + deps = [ ":dartaotruntime" ] + src_dir = get_label_info(":dartaotruntime", "root_out_dir") + sources = [ "$src_dir/dartaotruntime${executable_suffix}" ] + outputs = [ "$root_out_dir/dart_precompiled_runtime${executable_suffix}" ] +} + dart_executable("dartaotruntime") { extra_configs = [ "..:dart_aotruntime_config",