Tweak ninja fallback logic
In Skia (for example), GetPrimarySolutionPath works, but FindGclientRoot does not (users tend not to use gclient to sync DEPS, etc). Without this change, we'd get to the loop. If a user had pulled ninja to third_party/ninja/ninja, then it would work just fine. If they hadn't, python would throw an exception on the os.path.join line, because we'd be passing a NoneType as the first argument. Bug: chromium:1340825 Change-Id: Iab86450c5b6f00bc9c2716b9504debc9a56d9bb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4034942 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Nico Weber <thakis@chromium.org>changes/42/4034942/2
parent
31ca877242
commit
a0cf432171
Loading…
Reference in New Issue