Index: src/IceBrowserCompileServer.cpp |
diff --git a/src/IceBrowserCompileServer.cpp b/src/IceBrowserCompileServer.cpp |
index 0b622df696561b9215761a7d9a18ebeea97e9803..8b94a977250d1d151b24f4485453d98f6a85e78e 100644 |
--- a/src/IceBrowserCompileServer.cpp |
+++ b/src/IceBrowserCompileServer.cpp |
@@ -277,7 +277,9 @@ void BrowserCompileServer::startCompileThread(int ObjFD) { |
InputStream = new llvm::QueueStreamer(); |
bool LogStreamFailure = false; |
int LogFD = STDOUT_FILENO; |
- if (getFlags().getLogFilename() == "/dev/stderr") { |
+ if (getFlags().getLogFilename() == "-") { |
+ // Common case, do nothing. |
+ } else if (getFlags().getLogFilename() == "/dev/stderr") { |
LogFD = STDERR_FILENO; |
} else { |
LogStreamFailure = true; |