diff options
-rw-r--r-- | lib/CompilerDriver/Main.cpp | 1 | ||||
-rw-r--r-- | lib/CompilerDriver/Tool.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp index c9c0413..7d1a3d8 100644 --- a/lib/CompilerDriver/Main.cpp +++ b/lib/CompilerDriver/Main.cpp @@ -37,6 +37,7 @@ namespace { } else if (SaveTemps == SaveTempsEnum::Obj && !OutputFilename.empty()) { tempDir = OutputFilename; + tempDir = tempDir.getDirname(); if (!tempDir.exists()) { std::string ErrMsg; diff --git a/lib/CompilerDriver/Tool.cpp b/lib/CompilerDriver/Tool.cpp index 7953dd2..5a32fd3 100644 --- a/lib/CompilerDriver/Tool.cpp +++ b/lib/CompilerDriver/Tool.cpp @@ -56,7 +56,7 @@ sys::Path Tool::OutFilename(const sys::Path& In, sys::Path Out; if (StopCompilation) { - if (!OutputFilename.empty() && SaveTemps != SaveTempsEnum::Obj ) { + if (!OutputFilename.empty()) { Out.set(OutputFilename); } else if (IsJoin()) { |