mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
cmcmd.cxx: Remove unused code in __run_iwyu implementation
Do not try to capture stderr with OUTPUT_PASSTHROUGH. RunSingleCommand will never populate it.
This commit is contained in:
@@ -361,11 +361,10 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
|
||||
}
|
||||
|
||||
// Now run the real compiler command and return its result value.
|
||||
if(!cmSystemTools::RunSingleCommand(orig_cmd, 0, &stdErr, &ret, 0,
|
||||
if(!cmSystemTools::RunSingleCommand(orig_cmd, 0, 0, &ret, 0,
|
||||
cmSystemTools::OUTPUT_PASSTHROUGH))
|
||||
{
|
||||
std::cerr << "Error running '" << orig_cmd[0] << "': "
|
||||
<< stdErr << "\n";
|
||||
std::cerr << "Error running '" << orig_cmd[0] << "'\n";
|
||||
return 1;
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user