mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-14 02:59:53 -06:00
cmUVProcessChain: Return output and error streams as file descriptors
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user