@@ -1960,13 +1960,12 @@ void Compilation::updateJobsForComparison(const DepJobsT &depJobs,
1960
1960
const RangeJobsT &rangeJobs) {
1961
1961
for (const auto *cmd : depJobs)
1962
1962
DependencyCompileJobs.insert (cmd);
1963
- if (SourceRangeCompileJobs)
1964
- for (const auto *cmd : rangeJobs)
1965
- SourceRangeCompileJobs->insert (cmd);
1963
+ for (const auto *cmd : rangeJobs)
1964
+ SourceRangeCompileJobs.insert (cmd);
1966
1965
}
1967
1966
1968
1967
void Compilation::setFallingBackForComparison () {
1969
- SourceRangeCompileJobs = None ;
1968
+ FallingBackToDependiesFromSourceRanges = true ;
1970
1969
}
1971
1970
1972
1971
void Compilation::outputComparison () const {
@@ -1996,14 +1995,17 @@ void Compilation::outputComparison(llvm::raw_ostream &out) const {
1996
1995
if (!getIncrementalBuildEnabled ())
1997
1996
out << " *** Comparing incremental strategies is moot: incremental "
1998
1997
" compilation disabled ***\n " ;
1999
- else if (SourceRangeCompileJobs )
1998
+ else if (FallingBackToDependiesFromSourceRanges )
2000
1999
out << " *** Comparing deps: " << DependencyCompileJobs.size ()
2001
- << " , ranges: " << SourceRangeCompileJobs-> size ()
2000
+ << " , ranges: " << SourceRangeCompileJobs. size ()
2002
2001
<< " , total: " << countSwiftInputs () << " ***\n " ;
2003
2002
else
2004
2003
out << " *** Comparing incremental strategies is moot: would fall "
2005
2004
" back and run "
2006
- << DependencyCompileJobs.size () << " , total: " << countSwiftInputs ()
2005
+ << DependencyCompileJobs.size ()
2006
+ << " , ranges: " << SourceRangeCompileJobs.size ()
2007
+ << " , total: " << countSwiftInputs ()
2008
+ << " , plus more to create source-range and compiled-source files"
2007
2009
<< " ***\n " ;
2008
2010
}
2009
2011
0 commit comments