Skip to content

Conversation

dzbarsky
Copy link
Contributor

With a hermetic cc toolchain + sysroot, the cc_toolchain.all_files can be quite a lot of a files to add to the spawn inputs. Our monorepo shows around 15% of global analysis time spent on ctx.actions.run of cargo_build_script due to these inputs. This PR gives us a switch to remove the toolchain from build scripts that don't intend to use it, while keeping backwards-compatibility.

@dzbarsky dzbarsky force-pushed the zbarsky/cc-build-script branch from 3956a95 to 0d6c5b8 Compare October 19, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant