From f4fa0cc7c1977c69e331d7332543d425e5dc9847 Mon Sep 17 00:00:00 2001 From: Simeon Anfinrud Date: Tue, 10 Jan 2023 22:01:57 +0000 Subject: [PATCH] Detect RBE builds and accelerate them. Chromecast builds use a buildflag called `use_rbe` instead of `use_remoteexec`. Bug: None Test: run `autoninja` in the chromecast internal repo Change-Id: Iebb18ad47a30c4152923f48175222ec6a20e16f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4144469 Reviewed-by: Gavin Mak Auto-Submit: Simeon Anfinrud Commit-Queue: Gavin Mak --- autoninja.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoninja.py b/autoninja.py index 539ee2ae1..b911a6f3f 100755 --- a/autoninja.py +++ b/autoninja.py @@ -98,6 +98,9 @@ def main(args): line_without_comment): use_remoteexec = True continue + if re.search(r'(^|\s)(use_rbe)\s*=\s*true($|\s)', line_without_comment): + use_remoteexec = True + continue else: for relative_path in [ '', # GN keeps them in the root of output_dir