1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
dart-sdk/build/toolchain/rbe.gni
Jonas Termansen 5678fd48cd [infra] Generalize RBE across operating systems.
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>
2024-01-10 11:38:43 +00:00

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",
]