diff options
author | Greg Estren <gregce@google.com> | 2015-11-11 19:57:37 +0000 |
---|---|---|
committer | Laszlo Csomor <laszlocsomor@google.com> | 2015-11-12 09:01:43 +0000 |
commit | bbe821e6ac874e31e3d4d6473e89f1d3b7a49390 (patch) | |
tree | 48ffa2427284a76855bfe9652ce6753499ea1a72 /src/test/java/com/google/devtools/common/options | |
parent | 8af7fe1f00375fe5658186820801b2bf8e80a215 (diff) |
When getting the Skyframe key for a ConfigurationFragment, first
trim the BuildOptions to only those needed by the fragment.
This guarantees that the same fragment only gets instantiated
once (for example: we don't want to have two copies of a
CppConfiguration because one copy had PythonOptions and the
other didn't).
This also prevents crashes, e.g. in the Preconditions check in
CcLibraryHelper.addDeps.
--
MOS_MIGRATED_REVID=107609270
Diffstat (limited to 'src/test/java/com/google/devtools/common/options')
0 files changed, 0 insertions, 0 deletions