Skip to content

Commit 4637cb1

Browse files
committed
Merge bitcoin#32002: doc: add note to Windows build about stripping bins
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
2 parents 5f73208 + c94195c commit 4637cb1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

doc/build-windows.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ If you want to build the Windows installer using the `deploy` build target, you
3535

3636
apt install nsis
3737

38+
3839
Acquire the source in the usual way:
3940

4041
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
6162
executables to a directory on the Windows drive in the same directory structure
6263
as they appear in the release `.zip` archive. This can be done in the following
6364
way. This will install to `c:\workspace\bitcoin`, for example:
65+
```shell
66+
cmake --install build --prefix /mnt/c/workspace/bitcoin
67+
```
6468

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

6775
You can also create an installer using:
68-
69-
cmake --build build --target deploy
76+
```shell
77+
cmake --build build --target deploy
78+
```

0 commit comments

Comments
 (0)