Skip to content

Commit c94195c

Browse files
committed
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`.
1 parent ee68b05 commit c94195c

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)