From 32a8dcc842451864527ae4fa16c87d40084a1611 Mon Sep 17 00:00:00 2001 From: Alex Ovsienko Date: Tue, 11 Nov 2025 00:08:06 -0800 Subject: [PATCH] siso: Make it so that we check the second parameter of siso whether it is `ninja` or not. The first one is always `siso`. Bug: b/348530235 Change-Id: I2135d87cb676156b4e14ace31928e9de6a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7140206 Reviewed-by: Junji Watanabe Auto-Submit: Alex Ovsienko Commit-Queue: Alex Ovsienko --- siso.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siso.py b/siso.py index 6625b49a4f..a04f0bb4fc 100644 --- a/siso.py +++ b/siso.py @@ -234,7 +234,7 @@ def main(args, telemetry_cfg: Optional[build_telemetry.Config] = None): print('depot_tools/siso.py: %s' % shlex.join(new_args), file=sys.stderr) # Add ninja specific flags. - if args[0] == "ninja": + if args[1] == "ninja": new_args = apply_metrics_labels(new_args) if should_collect_logs: new_args = apply_telemetry_flags(new_args)