[gn] Forward the 'pool' parameter through dart actions

Related: https://github.com/flutter/flutter/issues/86946

Change-Id: Ie33c93a76d6107760655a7769c6541222e169c75
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208060
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
Zach Anderson
2021-07-26 15:20:46 +00:00
committed by commit-bot@chromium.org
parent da2f5bb22c
commit 2cae568e38
3 changed files with 17 additions and 0 deletions
+8
View File
@@ -51,6 +51,10 @@ template("_compiled_action") {
testonly = invoker.testonly
}
if (defined(invoker.pool)) {
pool = invoker.pool
}
script = "$_dart_root/build/gn_run_binary.py"
if (defined(invoker.inputs)) {
@@ -109,6 +113,7 @@ template("_prebuilt_tool_action") {
"depfile",
"deps",
"outputs",
"pool",
"testonly",
"visibility",
])
@@ -256,6 +261,7 @@ template("_built_tool_action") {
"deps",
"inputs",
"outputs",
"pool",
"tool",
"testonly",
"visibility",
@@ -321,6 +327,7 @@ template("dart_action") {
"inputs",
"outputs",
"packages",
"pool",
"script",
"testonly",
"tool",
@@ -380,6 +387,7 @@ template("gen_snapshot_action") {
"inputs",
"outputs",
"packages",
"pool",
"testonly",
"tool",
"visibility",
+6
View File
@@ -82,6 +82,9 @@ template("_application_snapshot") {
# Build the kernel file using the prebuilt VM to speed up the debug and
# simulator builds.
prebuilt_dart_action(target_name + "_dill") {
if (defined(invoker.pool)) {
pool = invoker.pool
}
deps = extra_deps + [
"$_dart_root/runtime/vm:kernel_platform_files($host_toolchain)",
"$_dart_root/runtime/vm:vm_platform",
@@ -131,6 +134,9 @@ template("_application_snapshot") {
# Create a snapshot from kernel built above.
dart_action(target_name) {
if (defined(invoker.pool)) {
pool = invoker.pool
}
deps = extra_deps + [ ":${target_name}_dill" ]
depfile = "$output.d"
+3
View File
@@ -41,6 +41,9 @@ template("compile_platform") {
}
prebuilt_dart_action(target_name) {
if (defined(invoker.pool)) {
pool = invoker.pool
}
script = "$_dart_root/pkg/front_end/tool/_fasta/compile_platform.dart"
packages = "$_dart_root/.packages"