diff options
author | Brad King <brad.king@kitware.com> | 2020-03-27 11:38:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-27 11:39:30 (GMT) |
commit | a88b27bfc7115a2a931379e19d14aaf33f1d658f (patch) | |
tree | 5a39fc47ee8f2023f80f18c410421102c2c76acb /Source | |
parent | 5a79394e965a68df190bd30a2b67a0828922b8ea (diff) | |
parent | dc93cbb0d8a1f0acb12097d18e7764e856818a7b (diff) | |
download | CMake-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')
-rw-r--r-- | Source/cmcmd.cxx | 9 |
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; } |