-
Notifications
You must be signed in to change notification settings - Fork 36.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Windows build intructions result in a large binary #30593
Comments
It's the debug symbols. If you run |
The release binaries are stripped of debug info. |
Thank you, that was it. It this something worth noting in the docs? |
In a post-cmake world this is the type of thing I would expect developers to add to their own cmakuserpresets.json, although I don't see any reason it couldn't be documented too. Compiling without debug symbols is already documented in build-unix.md: Line 30 in 43740f4
But even building with |
Same issue when compiling 27.1 to build my own docker images in alpine. Same process, just switching tags.
Just adding the option "-s" or "--strip-all". Example: LDFLAGS="-static-libstdc++ -s" reduces the binary in 27.1 to 79 MB. |
+1 to adding a note in |
Following the intructions in doc/build-windows.md results in a
bitcoind
binary that's almost 440 MB. For comparison, the latest release binary is around 15 MB. Are the instructions perhaps missing a flag to create a release build or something like that? I'm using WSL.The text was updated successfully, but these errors were encountered: