Skip to content

Commit

Permalink
Version 3.5.0-53.0.dev
Browse files Browse the repository at this point in the history
Merge b3253d9 into dev
  • Loading branch information
Dart CI committed Apr 12, 2024
2 parents 461dc0a + b3253d9 commit 760079a
Show file tree
Hide file tree
Showing 6 changed files with 810 additions and 12 deletions.
41 changes: 33 additions & 8 deletions build/dart/dart_action.gni
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# BSD-style license that can be found in the LICENSE file.

import("../executable_suffix.gni")
import("../toolchain/rbe.gni")

# This file defines templates for running and compiling Dart code during
# Dart's build.
Expand Down Expand Up @@ -82,10 +83,22 @@ template("_compiled_action") {

# The "compiled_action" argument to gn_run_binary.py indicates that
# it will exit with a non-zero status when the target program does.
args = [
"compiled_action",
rebase_path(host_executable, root_build_dir),
] + invoker.args
args = [ "compiled_action" ]

if (use_rbe && (target_os == rbe_os ||
(target_os == "android" && rbe_os == "linux")) &&
target_cpu == rbe_cpu) {
args += [
"/usr/bin/python3",
rebase_path("//build/rbe/rewrapper_dart.py", root_build_dir),
] + rewrapper_args +
[
"--exec_strategy=" + rbe_expensive_exec_strategy,
"--",
]
}

args += [ rebase_path(host_executable, root_build_dir) ] + invoker.args
}
}

Expand Down Expand Up @@ -122,10 +135,22 @@ template("_prebuilt_tool_action") {
inputs += [ invoker.packages ]
}

args = [
"compiled_action",
rebase_path(invoker.binary, root_build_dir),
] + vm_args
args = [ "compiled_action" ]

if (use_rbe && (target_os == rbe_os ||
(target_os == "android" && rbe_os == "linux")) &&
target_cpu == rbe_cpu) {
args += [
"/usr/bin/python3",
rebase_path("//build/rbe/rewrapper_dart.py", root_build_dir),
] + rewrapper_args +
[
"--exec_strategy=" + rbe_expensive_exec_strategy,
"--",
]
}

args += [ rebase_path(invoker.binary, root_build_dir) ] + vm_args
if (defined(invoker.packages)) {
args += [ "--packages=" + rebase_path(invoker.packages, root_build_dir) ]
}
Expand Down
Loading

0 comments on commit 760079a

Please sign in to comment.