Skip to content

Commit

Permalink
Merge bitcoin#32002: doc: add note to Windows build about stripping bins
Browse files Browse the repository at this point in the history
c94195c doc: add note to windows build about stripping bin (fanquake)

Pull request description:

  The Windows binaries are particularly big when they contain debug info, closing in on 500mb. Add a note to the Windows build instructions about using `--strip`.

  I haven't tested this (the copying out to WSL). If we don't want to add this note, in favour of [user-presents or similar](bitcoin#30593 (comment)), then we should just close bitcoin#30593.

  Fixes bitcoin#30593.

ACKs for top commit:
  hodlinator:
    ACK c94195c
  hebasto:
    ACK c94195c.

Tree-SHA512: c55670486ef60c6bda720e65443e17747b840e220c5bf6d6c0b77590d95cd6c8f040bc0e67dfa8eb11451f4f2eac9faf25d74ea68251b881773836f4113e8595
  • Loading branch information
hebasto committed Mar 8, 2025
2 parents 5f73208 + c94195c commit 4637cb1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions doc/build-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ If you want to build the Windows installer using the `deploy` build target, you

apt install nsis


Acquire the source in the usual way:

git clone https://github.com/bitcoin/bitcoin.git
Expand All @@ -61,9 +62,17 @@ After building using the Windows subsystem it can be useful to copy the compiled
executables to a directory on the Windows drive in the same directory structure
as they appear in the release `.zip` archive. This can be done in the following
way. This will install to `c:\workspace\bitcoin`, for example:
```shell
cmake --install build --prefix /mnt/c/workspace/bitcoin
```

cmake --install build --prefix /mnt/c/workspace/bitcoin
Note that due to the presence of debug information, the binaries may be very large,
if you do not need the debug information, you can prune it during install by calling:
```shell
cmake --install build --prefix /mnt/c/workspace/bitcoin --strip
```

You can also create an installer using:

cmake --build build --target deploy
```shell
cmake --build build --target deploy
```

0 comments on commit 4637cb1

Please sign in to comment.