Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 18954e7

Browse files
committed
RBE
1 parent 249cd28 commit 18954e7

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

DEPS

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ vars = {
4747
# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/goma/client
4848
'goma_version': ' git_revision:41b3bcb64014144a844153fd5588c36411fffb56',
4949

50+
'reclient_version': 'git_revision:81e819b39d4743462857cc55430d898b9fcca1af',
51+
52+
'gcloud_version': 'version:2@444.0.0.chromium.3',
53+
5054
# When updating the Dart revision, ensure that all entries that are
5155
# dependencies of Dart are also updated to match the entries in the
5256
# Dart SDK's DEPS file for that revision of Dart. The DEPS file for
@@ -880,6 +884,30 @@ deps = {
880884
'dep_type': 'cipd',
881885
},
882886

887+
# reclient.
888+
'src/buildtools/linux-x64/reclient': {
889+
'packages': [
890+
{
891+
'package': 'infra/rbe/client/${{platform}}',
892+
'version': Var('reclient_version'),
893+
}
894+
],
895+
'condition': 'host_os == "linux" and host_cpu == "x64"',
896+
'dep_type': 'cipd',
897+
},
898+
899+
# gcloud
900+
'src/buildtools/linux-x64/gcloud': {
901+
'packages': [
902+
{
903+
'package': 'infra/3pp/tools/gcloud/${{platform}}',
904+
'version': Var('gcloud_version'),
905+
}
906+
],
907+
'condition': 'host_os == "linux" and host_cpu == "x64"',
908+
'dep_type': 'cipd',
909+
},
910+
883911
# Get the SDK from https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core at the 'latest' tag
884912
# Get the toolchain from https://chrome-infra-packages.appspot.com/p/fuchsia/clang at the 'goma' tag
885913
'src/fuchsia/sdk/mac': {

tools/gn

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,22 @@ def buildtools_dir():
214214
return '%s-%s' % (host_os, host_cpu)
215215

216216

217+
def setup_rbe(args):
218+
rbe_gn_args = {}
219+
220+
# When running in CI, the recipes use their own goma install, and take
221+
# care of starting and stopping the compiler proxy.
222+
running_on_luci = os.environ.get('LUCI_CONTEXT') is not None
223+
224+
rbe_gn_args['use_rbe'] = args.rbe
225+
if rbe_gn_args['use_rbe'] and sys.platform == 'darwin':
226+
if (not running_on_luci or args.xcode_symlinks or
227+
os.getenv('FLUTTER_GOMA_CREATE_XCODE_SYMLINKS', '0') == '1'):
228+
rbe_gn_args['create_xcode_symlinks'] = True
229+
230+
return rbe_gn_args
231+
232+
217233
def setup_goma(args):
218234
goma_gn_args = {}
219235

@@ -290,6 +306,8 @@ def to_gn_args(args):
290306

291307
gn_args.update(setup_goma(args))
292308

309+
gn_args.update(setup_rbe(args))
310+
293311
# If building for WASM, set the GN args using 'to_gn_wasm_args' as most
294312
# of the Flutter SDK specific arguments are unused.
295313
if args.target_os == 'wasm' or args.web:
@@ -913,6 +931,9 @@ def parse_args(args):
913931
help='Do not build the host-side development artifacts.'
914932
)
915933

934+
parser.add_argument('--rbe', default=None, action='store_true')
935+
parser.add_argument('--no-rbe', dest='rbe', action='store_false')
936+
916937
parser.add_argument('--goma', default=None, action='store_true')
917938
parser.add_argument('--no-goma', dest='goma', action='store_false')
918939
parser.add_argument(

0 commit comments

Comments
 (0)