doc: add note to windows build about stripping bin

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`.
This commit is contained in:
fanquake 2025-03-05 16:49:09 +00:00
parent ee68b05f3d
commit c94195c077
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -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
@ -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
```