Open EmixamPP opened 1 month ago
In addition, meson setup|configure
allows enabling --strip
and --debug
but there is no possibility to set them false, which limits the combinations of what we can set as default option and what can be modified/added manually.
I went through the different build types proposed by meson, and I see that
buildtype=minsize
setsdebug=true
andoptimization=s
. Wouldn't it make sense to setdebug=false
instead? Becausedebug=true
adds symbols to the target and thus increases its size significantly.Also, it would make sense to add
strip=true
whenbuildtype=minsize
is set, to further reduce the size. (Personally, I would also enable it whenbuildtype=release
)On my project, I report the following sizes for my standalone executable:
optimization=s
+debug=true
=buildtype=minsize
= 14Moptimization=s
+debug=false
= 7.8Moptimization=s
+debug=false
+strip=true
= 6.1Moptimization=s
+debug=true
+strip=true
= 6.1Moptimization=3
+debug=false
=buildtype=release
= 7.9Moptimization=3
+debug=false
+strip=true
= 6.3Moptimization=0
+debug=true
=buildtype=debug
= 14Moptimization=0
+debug=true
+strip=true
= 6.6MAs you can see,
buildtype=minsize
seems a bad name, since it is as big asbuildtype=debug
(withoutstrip=true
).I can PR this change if you're interested.
A last question, I'm wondering why it is
optimization=0
that has been chosen forbuildtype=debug
, and notoptimization=g
, although I guessdebug=true
enables that?