Delete the temp dir even when '--temp-dir' is specified.

llvm-svn: 75374
This commit is contained in:
Mikhail Glushenkov 2009-07-11 19:27:07 +00:00
parent fc69ee2cc6
commit 3c9e8d3b1f
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ namespace {
int BuildTargets(CompilationGraph& graph, const LanguageMap& langMap) { int BuildTargets(CompilationGraph& graph, const LanguageMap& langMap) {
int ret; int ret;
const sys::Path& tempDir = getTempDir(); const sys::Path& tempDir = getTempDir();
bool toDelete = bool toDelete = (SaveTemps == SaveTempsEnum::Unset);
(SaveTemps == SaveTempsEnum::Unset && TempDirname.empty());
try { try {
ret = graph.Build(tempDir, langMap); ret = graph.Build(tempDir, langMap);