[build] Clean up aot_compile_using_prebuilt_sdk.
Change-Id: I8fae6e701b97a01ab4fa3f68d8fc3c39c6d00761 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/506141 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
53733077b2
commit
0bf1b50875
+4
-11
@@ -8,7 +8,7 @@ import("../sdk_args.gni")
|
||||
_dart_root = get_path_info("..", "abspath")
|
||||
|
||||
template("aot_compile_using_prebuilt_sdk") {
|
||||
action(target_name) {
|
||||
prebuilt_dart_action(target_name) {
|
||||
forward_variables_from(invoker,
|
||||
[
|
||||
"deps",
|
||||
@@ -16,9 +16,6 @@ template("aot_compile_using_prebuilt_sdk") {
|
||||
"testonly",
|
||||
"visibility",
|
||||
])
|
||||
|
||||
script = "$_dart_root/build/gn_dart_compile_exe.py"
|
||||
|
||||
inputs = [
|
||||
invoker.entry_point,
|
||||
invoker.package_config,
|
||||
@@ -28,20 +25,16 @@ template("aot_compile_using_prebuilt_sdk") {
|
||||
|
||||
depfile = invoker.output + ".d"
|
||||
|
||||
# TODO(vegorov): support RBE by using rewrapper script.
|
||||
args = [
|
||||
"--dart-sdk",
|
||||
rebase_path("$_dart_root/tools/sdks/dart-sdk", root_build_dir),
|
||||
"--sdk-hash",
|
||||
"$sdk_hash",
|
||||
"--entry-point",
|
||||
rebase_path(invoker.entry_point, root_build_dir),
|
||||
"compile",
|
||||
"exe",
|
||||
"--output",
|
||||
rebase_path(invoker.output, root_build_dir),
|
||||
"--packages",
|
||||
rebase_path(invoker.package_config, root_build_dir),
|
||||
"--depfile",
|
||||
rebase_path(depfile, root_build_dir),
|
||||
rebase_path(invoker.entry_point, root_build_dir),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user