mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 18:44:59 +01:00
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:
parent
ee68b05f3d
commit
c94195c077
1 changed files with 12 additions and 3 deletions
|
@ -35,6 +35,7 @@ If you want to build the Windows installer using the `deploy` build target, you
|
||||||
|
|
||||||
apt install nsis
|
apt install nsis
|
||||||
|
|
||||||
|
|
||||||
Acquire the source in the usual way:
|
Acquire the source in the usual way:
|
||||||
|
|
||||||
git clone https://github.com/bitcoin/bitcoin.git
|
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
|
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
|
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:
|
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:
|
You can also create an installer using:
|
||||||
|
```shell
|
||||||
cmake --build build --target deploy
|
cmake --build build --target deploy
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue