summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-27 11:38:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-27 11:39:30 (GMT)
commita88b27bfc7115a2a931379e19d14aaf33f1d658f (patch)
tree5a39fc47ee8f2023f80f18c410421102c2c76acb /Source/cmcmd.cxx
parent5a79394e965a68df190bd30a2b67a0828922b8ea (diff)
parentdc93cbb0d8a1f0acb12097d18e7764e856818a7b (diff)
downloadCMake-a88b27bfc7115a2a931379e19d14aaf33f1d658f.zip
CMake-a88b27bfc7115a2a931379e19d14aaf33f1d658f.tar.gz
CMake-a88b27bfc7115a2a931379e19d14aaf33f1d658f.tar.bz2
Merge topic 'llvm-rc-stderr'
dc93cbb0d8 llvm-rc: Print stderr output when calling tools through cmake_llvm_rc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4525
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index a395089..18a2108 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -1698,6 +1698,11 @@ int cmcmd::RunPreprocessor(const std::vector<std::string>& command,
}
auto status = process.GetStatus();
if (!status[0] || status[0]->ExitStatus != 0) {
+ auto errorStream = process.ErrorStream();
+ if (errorStream) {
+ std::cerr << errorStream->rdbuf();
+ }
+
return 1;
}
@@ -1766,6 +1771,10 @@ int cmcmd::RunLLVMRC(std::vector<std::string> const& args)
}
auto status = process.GetStatus();
if (!status[0] || status[0]->ExitStatus != 0) {
+ auto errorStream = process.ErrorStream();
+ if (errorStream) {
+ std::cerr << errorStream->rdbuf();
+ }
return 1;
}