Browse Source

autoninja.py: Detect when use_siso=false exists after use_siso=true

I ran into this from having use_siso=true in an include(), and then
trying to turn it off again via an assignment

Change-Id: Iba70ade68c7a3699755d6a0070816283e0538c6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5769918
Commit-Queue: Junji Watanabe <jwata@google.com>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Andrew Grieve 1 year ago
parent
commit
5f6542c176
1 changed files with 9 additions and 0 deletions
  1. 9 0
      autoninja.py

+ 9 - 0
autoninja.py

@@ -242,9 +242,18 @@ def _main_inner(input_args, build_id, should_collect_logs=False):
             if k == "use_remoteexec" and v == "true":
                 use_remoteexec = True
                 continue
+            if k == "use_remoteexec" and v == "false":
+                use_remoteexec = False
+                continue
             if k == "use_siso" and v == "true":
                 use_siso = True
                 continue
+            if k == "use_siso" and v == "false":
+                use_siso = False
+                continue
+            if k == "use_reclient" and v == "true":
+                use_reclient = True
+                continue
             if k == "use_reclient" and v == "false":
                 use_reclient = False
                 continue