[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 <athom@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
Jonas Termansen
2023-12-18 13:31:04 +00:00
committed by Commit Queue
parent 8863ed646e
commit fb2f007c71
+6
View File
@@ -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