dart-sdk/tools/buildtools
Josh Soref b48dc3af7a Spelling tools
Closes https://github.com/dart-lang/sdk/pull/50773

GitOrigin-RevId: 8f729bf80cce3c39b788a61591f14db234297186
Change-Id: I5a07bf96a2f8920560983fda504000c39e598e05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276560
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2022-12-21 17:26:48 +00:00
..
win
README.md
update.py Spelling tools 2022-12-21 17:26:48 +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, 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'.