summaryrefslogtreecommitdiffstats
path: root/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-06-09 14:02:47 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-06-14 15:53:55 (GMT)
commitb8fd273ed7b14ff71cd55d39ffb7c41c2f5ee421 (patch)
treee2874af8d0a86cd73221f8ccb5bc33f05782e122 /Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx
parentec81d40be437a0ca2362f3b8c84dbfbf7fe6a2b3 (diff)
downloadCMake-b8fd273ed7b14ff71cd55d39ffb7c41c2f5ee421.zip
CMake-b8fd273ed7b14ff71cd55d39ffb7c41c2f5ee421.tar.gz
CMake-b8fd273ed7b14ff71cd55d39ffb7c41c2f5ee421.tar.bz2
cmUVProcessChain: Return output and error streams as file descriptors
Diffstat (limited to 'Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx')
-rw-r--r--Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx b/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx
index 3b02c2e..cd21140 100644
--- a/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx
+++ b/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx
@@ -9,6 +9,7 @@
#include "cmRuntimeDependencyArchive.h"
#include "cmUVProcessChain.h"
+#include "cmUVStream.h"
cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool::
cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool(
@@ -43,7 +44,8 @@ bool cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool::GetFileInfo(
std::string line;
static const cmsys::RegularExpression regex(
"^ ([^\n]*\\.[Dd][Ll][Ll])\r$");
- while (std::getline(*process.OutputStream(), line)) {
+ cmUVPipeIStream output(process.GetLoop(), process.OutputStream());
+ while (std::getline(output, line)) {
cmsys::RegularExpressionMatch match;
if (regex.find(line.c_str(), match)) {
needed.push_back(match.match(1));