diff options
author | Brad King <brad.king@kitware.com> | 2024-01-24 15:07:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-24 21:59:49 (GMT) |
commit | b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6 (patch) | |
tree | 98d4ead44dc511d27dace599003db68c6be72423 /Source/cmake.cxx | |
parent | 116bb2b70f87276515f9b64937502ce6c8754cbd (diff) | |
download | CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.zip CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.gz CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.bz2 |
cmUVProcessChain: Simplify SetExternalStream usage
It is commonly called with the `fileno()` of a `FILE*` stream,
so accept the latter directly.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f54196b..636a0da 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -27,7 +27,6 @@ #include "cmsys/Glob.hxx" #include "cmsys/RegularExpression.hxx" -#include "cm_fileno.hxx" #include "cm_sys_stat.h" #include "cmBuildOptions.h" @@ -3916,10 +3915,8 @@ std::function<int()> cmake::BuildWorkflowStep( { cmUVProcessChainBuilder builder; builder.AddCommand(args) - .SetExternalStream(cmUVProcessChainBuilder::Stream_OUTPUT, - cm_fileno(stdout)) - .SetExternalStream(cmUVProcessChainBuilder::Stream_ERROR, - cm_fileno(stderr)); + .SetExternalStream(cmUVProcessChainBuilder::Stream_OUTPUT, stdout) + .SetExternalStream(cmUVProcessChainBuilder::Stream_ERROR, stderr); return [builder]() -> int { auto chain = builder.Start(); chain.Wait(); |