See: https://www.qt.io/blog/2019/01/02/qt-applications-lto
bitcon-qt
unstripped size:
host | master (31c6309cc60ae3fee2d3ecc2aff9576596fb98ac) | this PR, depends built with LTO=1 |
---|---|---|
x86_64-pc-linux-gnu | 42 MB | 35 MB |
arm-linux-gnueabihf | 31 MB | 26 MB |
aarch64-linux-gnu | 41 MB | 32 MB |
powerpc64-linux-gnu | 51 MB | 41 MB |
powerpc64le-linux-gnu | 48 MB | 39 MB |
riscv64-linux-gnu | 35 MB | 29 MB |
Based on the first commit from bitcoin/bitcoin#25391.
Using LTO for macOS and Windows hosts has some issues which could be addressed in follow ups.
x86_64 build: