dart-sdk/tools/buildtools
Zach Anderson ef5c553333 [windows] Disable clang-format download for bot failures
Change-Id: I137675fc73e4b068baf1100b684ae0d694d12977
Reviewed-on: https://dart-review.googlesource.com/4607
Reviewed-by: Zach Anderson <zra@google.com>
2017-09-08 22:43:37 +00:00
..
win [windows] Roll clang-format forward 2017-09-08 22:25:38 +00:00
README.md [infra] Fix clang-format invocation from git cl format 2017-05-09 09:24:00 -07:00
update.py [windows] Disable clang-format download for bot failures 2017-09-08 22:43:37 +00:00

To build Dart for Mac and Linux, we pull Fuchsia's buildtools, which is also used by Flutter. Fuchsia's buildtools includes gn, ninja, and the clang toolchain. Fuchsia buildtools vends clang-format as part of the clang toolchain. Since Fuchsia's buildtools doesn't vend a clang toolchain for Windows, we can't get a Windows clang-format binary from it. Therefore, from Chromium's buildtools here:

https://chromium.googlesource.com/chromium/buildtools

we copy the hash file for its Windows clang-format binary, and pull it down from google storage in the update.py script in this directory.

To update to a newer Windows clang-format binary, simply overwrite the hash in clang-format.exe.sha1 with a newer one, and then do a 'gclient sync'.