Skip to content

Conversation

hebasto
Copy link
Contributor

@hebasto hebasto commented Feb 28, 2024

This PR makes possible to cross-compile for Windows using the MinGW-w64 toolchain as follows:

cmake -B build -DSUBPROCESS_TESTS=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++-posix
cmake --build build

This PR supersedes #63.

@lunacd
Copy link
Contributor

lunacd commented Apr 20, 2025

Bumping this PR. This together with #110 #109 and #108 was able to get me a fully working (for my purpose) setup on Windows

@arun11299 arun11299 merged commit 34033d0 into arun11299:master Apr 22, 2025
3 checks passed
@arun11299
Copy link
Owner

@hebasto @lunacd I have merged all the changes. Can you please check if the latest pull works for you ?

@hebasto hebasto deleted the 240228-mingw branch April 22, 2025 13:19
@hebasto
Copy link
Contributor Author

hebasto commented Apr 22, 2025

@hebasto @lunacd I have merged all the changes. Can you please check if the latest pull works for you ?

I can build the master branch @ 34033d0 as described in the OP.

hebasto added a commit to hebasto/bitcoin that referenced this pull request Apr 22, 2025
hebasto added a commit to hebasto/bitcoin that referenced this pull request Apr 22, 2025
hebasto added a commit to hebasto/bitcoin that referenced this pull request Apr 27, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889
hebasto added a commit to hebasto/bitcoin that referenced this pull request May 1, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889
hebasto added a commit to bitcoin/bitcoin that referenced this pull request May 5, 2025
cd95c9d subprocess: check and handle fcntl(F_GETFD) failure (Tomás Andróil)
b7288de subprocess: Proper implementation of wait() on Windows (Haowen Liu)
7423214 subprocess: Do not escape double quotes for command line arguments on Windows (Hennadii Stepanov)
bb9ffea subprocess: Explicitly define move constructor of Streams class (Shunsuke Shimizu)
174bd43 subprocess: Avoid leaking POSIX name aliases beyond `subprocess.h` (Hennadii Stepanov)
7997b76 subprocess: Fix cross-compiling with mingw toolchain (Hennadii Stepanov)
6476304 subprocess: Get Windows return code in wait() (Haowen Liu)
d3f511b subprocess: Fix string_arg when used with rref (Haowen Liu)
2fd3f2f subprocess: Fix memory leaks (Haoran Peng)

Pull request description:

  Most of these changes were developed during work on #29868 and #32342 and have since been upstreamed.

  As they are now merged, this PR backports them to our `src/util/subprocess.h` header.

  Required for #29868.

  A list of the backported PRs:
   - arun11299/cpp-subprocess#106
  - arun11299/cpp-subprocess#110
  - arun11299/cpp-subprocess#109
  - arun11299/cpp-subprocess#99
  - arun11299/cpp-subprocess#112
  - arun11299/cpp-subprocess#107
  - arun11299/cpp-subprocess#113
  - arun11299/cpp-subprocess#116
  - arun11299/cpp-subprocess#117

  The following PRs were skipped for backporting:
  - arun11299/cpp-subprocess#108 because we are not planning to support this feature.
  - arun11299/cpp-subprocess#101 because that change has been already landed in #29849.

ACKs for top commit:
  theStack:
    Light ACK cd95c9d
  laanwj:
    Code review re-ACK cd95c9d

Tree-SHA512: f9b60b932957d2e1cad1d87f2ad8bb68c97136e9735eb78547018a42cc50c4652750367f29462eadb0512c27db1dd8a7d4b17a2f0aeab62b3dbf86db5f51a61c
w0xlt pushed a commit to w0xlt/bitcoin that referenced this pull request May 7, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889
alexanderwiederin pushed a commit to alexanderwiederin/bitcoin that referenced this pull request May 8, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889
Eunovo pushed a commit to Eunovo/bitcoin that referenced this pull request May 12, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889
luke-jr pushed a commit to luke-jr/bitcoin that referenced this pull request Jun 6, 2025
Github-Pull: arun11299/cpp-subprocess#99
Rebased-From: 34033d03deacfdba892a708b7d8092b4d9e5e889

Github-Pull: bitcoin#32358
Rebased-From: 7997b76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants