Skip to content

Commit 1c3a54b

Browse files
committed
[Driver] Only warn on .swiftdeps load-fail with -driver-show-incremental.
1 parent ec5d4f3 commit 1c3a54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Driver/Compilation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ namespace driver {
270270

271271
void
272272
dependencyLoadFailed(StringRef DependenciesFile, bool Warn=true) {
273-
if (Warn)
273+
if (Warn && Comp.ShowIncrementalBuildDecisions)
274274
Comp.Diags.diagnose(SourceLoc(),
275275
diag::warn_unable_to_load_dependencies,
276276
DependenciesFile);

0 commit comments

Comments
 (0)