mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Unity: Clarify source comments on unity build transformation
This commit is contained in:
@@ -1892,7 +1892,8 @@ bool cmGlobalGenerator::AddAutomaticSources()
|
||||
}
|
||||
}
|
||||
}
|
||||
// The above transformations may have changed the classification of sources.
|
||||
// The above transformations may have changed the classification of sources,
|
||||
// e.g., sources that go into unity builds become SourceKindUnityBatched.
|
||||
// Clear the source list and classification cache (KindedSources) of all
|
||||
// targets so that it will be recomputed correctly by the generators later
|
||||
// now that the above transformations are done for all targets.
|
||||
|
||||
@@ -3131,6 +3131,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
|
||||
|
||||
for (size_t ci = 0; ci < configs.size(); ++ci) {
|
||||
// FIXME: Refactor collection of sources to not evaluate object libraries.
|
||||
// Their final set of object files might be transformed by unity builds.
|
||||
std::vector<cmSourceFile*> sources;
|
||||
target->GetSourceFiles(sources, configs[ci]);
|
||||
for (cmSourceFile* sf : sources) {
|
||||
|
||||
Reference in New Issue
Block a user