From bb67064617af5d690bf390b6cd280a502d5036c8 Mon Sep 17 00:00:00 2001 From: Ben Segall Date: Wed, 6 Sep 2023 14:44:21 +0000 Subject: [PATCH] Enable racing for ninja+reclient developer builds Bug: b/288564971 Change-Id: Ibae8f86b7c79b9fa218e0f04c75fe99414c4f48b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4844059 Reviewed-by: Junji Watanabe Commit-Queue: Ben Segall --- ninja_reclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ninja_reclient.py b/ninja_reclient.py index 7ceaf7abd..451ae9967 100755 --- a/ninja_reclient.py +++ b/ninja_reclient.py @@ -7,6 +7,7 @@ handles the client lifecycle safely. It will automatically start reproxy before running ninja and stop reproxy when ninja stops for any reason eg. build completes, keyboard interupt etc.""" +import os import sys import ninja @@ -14,6 +15,7 @@ import reclient_helper def main(argv): + os.environ.setdefault("RBE_exec_strategy", "racing") with reclient_helper.build_context(argv, 'ninja_reclient') as ret_code: if ret_code: return ret_code