summaryrefslogtreecommitdiffstats
path: root/Source/cmLDConfigLDConfigTool.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/cmLDConfigLDConfigTool.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/cmLDConfigLDConfigTool.cxx')
-rw-r--r--Source/cmLDConfigLDConfigTool.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLDConfigLDConfigTool.cxx b/Source/cmLDConfigLDConfigTool.cxx
index 7ce1a59..154aa27 100644
--- a/Source/cmLDConfigLDConfigTool.cxx
+++ b/Source/cmLDConfigLDConfigTool.cxx
@@ -14,6 +14,7 @@
#include "cmRuntimeDependencyArchive.h"
#include "cmSystemTools.h"
#include "cmUVProcessChain.h"
+#include "cmUVStream.h"
cmLDConfigLDConfigTool::cmLDConfigLDConfigTool(
cmRuntimeDependencyArchive* archive)
@@ -50,7 +51,8 @@ bool cmLDConfigLDConfigTool::GetLDConfigPaths(std::vector<std::string>& paths)
std::string line;
static const cmsys::RegularExpression regex("^([^\t:]*):");
- 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)) {
paths.push_back(match.match(1));