-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[engine,build] Fix Fuchsia RBE build #177865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Code Review
This pull request updates the Fuchsia build configuration to fix issues with Remote Build Execution (RBE). The main changes include explicitly listing the __config_site file as a build input for RBE workers and removing now-unnecessary target_triple and sysroot flags from the toolchain definition, as these are handled by the Fuchsia build configs. Additionally, compiler commands are updated to use -MMD instead of -MD for dependency generation, which is a good improvement.
97ed0cf to
110f01d
Compare
110f01d to
017887f
Compare
As in the Dart build here: https://github.com/dart-lang/sdk/blame/fc8b3d79277c55f613423e125f49c80643d2498a/build/toolchain/fuchsia/fuchsia_toolchain.gni#L24 For unknown reasons, the `__config_site` file has to be explicitly listed as an input to the build to ensure it is available in the RBE workers. This PR also cleans up unnecessary flags from the Fuchsia toolchain definition. The target triple and sysroot flags are already injected into the compiler flags by the Fuchsia build configs. linux_fuchsia presub ran in 16 minutes.
As in the Dart build here:
https://github.com/dart-lang/sdk/blame/fc8b3d79277c55f613423e125f49c80643d2498a/build/toolchain/fuchsia/fuchsia_toolchain.gni#L24
For unknown reasons, the
__config_sitefile has to be explicitly listed as an input to the build to ensure it is available in the RBE workers.This PR also cleans up unnecessary flags from the Fuchsia toolchain definition. The target triple and sysroot flags are already injected into the compiler flags by the Fuchsia build configs.
linux_fuchsia presub ran in 16 minutes.