summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
index 48b22677b2..de141303fe 100644
--- a/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
+++ b/src/compiler/scala/tools/nsc/dependencies/DependencyAnalysis.scala
@@ -94,6 +94,12 @@ trait DependencyAnalysis extends SubComponent with Files {
dependencies.depends(source, d.sourceFile);
}
}
+ // When all is said and done, if the dependencies file is 0 length
+ // delete it so people do not curse it with the vehemence with which
+ // they curse .DS_Store and the like. This feels like a strange
+ // place to put this, but was the best I could find on short notice.
+ for (f <- dependenciesFile ; size <- f.sizeOption ; if size == 0)
+ f.delete
}
}
}