[Qbs] Binary stripping

Christian Kandeler christian.kandeler at qt.io
Tue Apr 14 10:28:17 CEST 2020


On Thu, 9 Apr 2020 22:49:48 +0300
Alberto Mardegan <mardy at users.sourceforge.net> wrote:

> I noticed that binaries generated by mingw are quite large, and when I
> ran the "strip" command on them, the size was reduced by more than half,
> without losing functionality.
> 
> I'm building my application with the `config:release` option. Shouldn't
> that run "strip" on the generated binaries? I see that QBS seems to be
> strip-aware already (there are the stripName and stripPath options in
> the cpp module), but it appears that their usage is only triggered if
> separate debug information is requested.
> 
> Is there a reason why "strip" is not invoked when in release mode?

This has come up before, and I vaguely remember there was some counter argument, but I don't kow anymore what it was.
Anyway, qmake, I believe, runs strip for mingw only (perhaps because of the extreme code size issues mentioned above?). What do other build tools do?


Christian


More information about the Qbs mailing list