From fb2f007c717c058a5ba80decd76a5764bfc7fa16 Mon Sep 17 00:00:00 2001 From: Jonas Termansen Date: Mon, 18 Dec 2023 13:31:04 +0000 Subject: [PATCH] [infra] Advertise RBE on Googler machines. Bug: b/296994239 Change-Id: Id604b3f786dc90363fd77ea93ea8e1d080e2b43b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341501 Reviewed-by: Alexander Thomas Commit-Queue: Jonas Termansen --- tools/gn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/gn.py b/tools/gn.py index 6b1de1a2463..a1991d824b0 100755 --- a/tools/gn.py +++ b/tools/gn.py @@ -7,6 +7,7 @@ import argparse import os import platform import subprocess +import socket import sys import time import utils @@ -412,6 +413,11 @@ def ProcessOptions(args): if HOST_OS != 'win' and args.use_crashpad: print("Crashpad is only supported on Windows") return False + if os.environ.get('RBE_cfg') == None and \ + socket.getfqdn().endswith('.corp.google.com') and \ + (args.rbe or args.goma) and \ + sys.platform in ['linux']: + print('You can speed up your build by following: go/dart-rbe') return True