Improve ninja-to-siso switch detection
autoninja tries to detect if a user switches an output directory from ninja to siso without doing a "gn clean" between. Initiallly this detection looked for .ninja_deps, but this file doesn't always exist after a ninja build. This change switches to looking for .ninja_log. However autosiso creates a .ninja_log file (currently zero length) so the new check is: a) If .siso_deps exists then a siso build has been done and only siso builds are allowed. b) If .siso_deps doesn't exist but .ninja_log does then a ninja build has been done and only ninja builds are allowed. c) If neither file exists then the directory was cleaned and any type of build is allowed. Bug: b/293657720 Change-Id: I2cdba74f0894e62aa0e68f91e225f497b2425f45 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4784103 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by: Junji Watanabe <jwata@google.com> Reviewed-by: Philipp Wollermann <philwo@google.com>changes/03/4784103/6
parent
2d5c673fdb
commit
9c4fbc5a2a
Loading…
Reference in New Issue