diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-14 21:31:36 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-04-14 21:31:36 +0000 |
commit | 60cde5ba7cba8c152562ad6bb99a0501d705d61c (patch) | |
tree | 200c9c4cdc02bfa3db65e8056f80c8b8662dd1a3 | |
parent | 3a62efb732151eb4ad9d06ba46fbdaf51c0d7c6f (diff) | |
download | bcm5719-llvm-60cde5ba7cba8c152562ad6bb99a0501d705d61c.tar.gz bcm5719-llvm-60cde5ba7cba8c152562ad6bb99a0501d705d61c.zip |
Call CreateProcess with bInheritHandles = TRUE.
Makes llvmc show error messages printed by child processes when run from the
Cygwin/MSYS shell. Since ExecuteAndWait does not return until the child program
has finished execution, this change should be harmless.
llvm-svn: 69082
-rw-r--r-- | llvm/lib/System/Win32/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc index e74b41cde17..49086b8348e 100644 --- a/llvm/lib/System/Win32/Program.inc +++ b/llvm/lib/System/Win32/Program.inc @@ -226,7 +226,7 @@ Program::ExecuteAndWait(const Path& path, fflush(stdout); fflush(stderr); - BOOL rc = CreateProcess(path.c_str(), command, NULL, NULL, FALSE, 0, + BOOL rc = CreateProcess(path.c_str(), command, NULL, NULL, TRUE, 0, envblock, NULL, &si, &pi); DWORD err = GetLastError(); |