-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use chaining to reduce duplicate toolchain vars
The idea is that all actions generated the same CcCompilationHelper share a set of toolchain variables (especially those passed in as extra variables), which significantly reduces memory consumption in cases where Bazel generates more than one actions for a single configured target. AFAICT, there does not seem to be a mechanism that allows the extra variables to vary based on the specific action generated (i.e., based on the source or output file for that action). Note that we can't share copts in the case where per_file_copts is set. Ideally, we'd share copts as well, unless specifically overridden. PiperOrigin-RevId: 259276353
- Loading branch information
1 parent
184b454
commit 3b10c59
Showing
3 changed files
with
271 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.