-
Notifications
You must be signed in to change notification settings - Fork 254
Changes to support RBE in Windows builds #820
Conversation
|
This is still work in progress. |
|
|
||
| script_dir = os.path.dirname(os.path.realpath(__file__)) | ||
| json_data_file = os.path.join(script_dir, 'win_toolchain.json') | ||
| json_data_file = os.path.join(script_dir, 'new_win_toolchain.json') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like this file is checked in -- is it meant to be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this file is generated by gclient sync via this script. It holds info about the location of the toolchain and the version so that the same version of the toolchain isn't downloaded again.
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall lgtm - I'm assuming setup_toolchain.py and win_toolchain_data.gni are updated from the chromium tree?
Correct. |
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

This PR does a few things:
depot_tools, which typically exists outside of the engine source root both locally and in CI. That setup makes the Windows SDK inaccessible to RBE builds. Instead, this PR checks outdepot_toolsunderflutter/third_party/depot_toolsby listing it in theDEPSfile. This location is under the engine source root, and is therefore accessible to RBE builds. This change has the downside of breaking how CI does caching of thedepot_toolsWindows toolchain and SDK, which will add some time to builds.build/find_depot_tools.py,build/toolchain/win/BUILD.gn, andbuild/toolchain/win/setup_toolchain.pyare copied from there and adapted to the Flutter engine repo.