File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ using CommandSet = llvm::SmallPtrSet<const Job *, 16>;
79
79
class Compilation {
80
80
public:
81
81
class IncrementalSchemeComparator {
82
+ const bool EnableIncrementalBuildWhenConstructed;
82
83
const bool &EnableIncrementalBuild;
83
84
const bool EnableSourceRangeDependencies;
84
85
const bool &UseSourceRangeDependencies;
@@ -108,7 +109,8 @@ class Compilation {
108
109
const StringRef CompareIncrementalSchemesPath,
109
110
unsigned SwiftInputCount,
110
111
DiagnosticEngine &Diags)
111
- : EnableIncrementalBuild(EnableIncrementalBuild),
112
+ : EnableIncrementalBuildWhenConstructed(EnableIncrementalBuild),
113
+ EnableIncrementalBuild (EnableIncrementalBuild),
112
114
EnableSourceRangeDependencies(EnableSourceRangeDependencies),
113
115
UseSourceRangeDependencies(UseSourceRangeDependencies),
114
116
CompareIncrementalSchemesPath(CompareIncrementalSchemesPath),
Original file line number Diff line number Diff line change @@ -2003,6 +2003,10 @@ void Compilation::IncrementalSchemeComparator::outputComparison() const {
2003
2003
2004
2004
void Compilation::IncrementalSchemeComparator::outputComparison (
2005
2005
llvm::raw_ostream &out) const {
2006
+ if (!EnableIncrementalBuildWhenConstructed) {
2007
+ out << " *** Incremental build was not enabled in the command line ***\n " ;
2008
+ return ;
2009
+ }
2006
2010
if (!EnableIncrementalBuild) {
2007
2011
// No stats will have been gathered
2008
2012
assert (!WhyIncrementalWasDisabled.empty () && " Must be a reason" );
You can’t perform that action at this time.
0 commit comments