mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 01:34:42 +00:00
5678fd48cd
Bug: b/296994239 Change-Id: Ie8630bcece5c2f62c5693afe654fb9d6367b33e4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345286 Commit-Queue: Jonas Termansen <sortie@google.com> Reviewed-by: Alexander Thomas <athom@google.com>
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Defines the configuration of RBE.
|
|
|
|
declare_args() {
|
|
# Set to true to enable distributed compilation using RBE.
|
|
use_rbe = false
|
|
|
|
# Set to the operating system to use in the RBE pool
|
|
rbe_os = "linux"
|
|
|
|
# Set to the architecture used in the RBE pool.
|
|
rbe_cpu = "x64"
|
|
|
|
# Set to the docker image to use in the RBE.
|
|
rbe_image = "docker://gcr.io/cloud-marketplace/google/debian11@sha256:69e2789c9f3d28c6a0f13b25062c240ee7772be1f5e6d41bb4680b63eae6b304"
|
|
|
|
rbe_exec_root = rebase_path("//")
|
|
|
|
rbe_dir = rebase_path("//buildtools/reclient")
|
|
}
|
|
|
|
declare_args() {
|
|
if (rbe_os == "linux") {
|
|
rbe_os_family = "Linux"
|
|
} else if (rbe_os == "win") {
|
|
rbe_os_family = "Windows"
|
|
} else if (rbe_os == "mac") {
|
|
rbe_os_family = "Mac"
|
|
} else {
|
|
rbe_os_family = rbe_os
|
|
}
|
|
|
|
# Set to the desired fully qualified RBE platform.
|
|
rbe_platform = "container-image=$rbe_image,OSFamily=$rbe_os_family"
|
|
}
|
|
|
|
rewrapper_args = [
|
|
"$rbe_dir/rewrapper",
|
|
"--exec_root=$rbe_exec_root",
|
|
"--platform=$rbe_platform",
|
|
]
|