Building Godot 4 Master branch, I seem to be getting very large build sizes. The full binary tends to be 1GB (956MB if using lto). Export templates seem to be around 650MB in size (for a single export template). This is on PopOS using GCC. I'm not adding any modules of my own. It's just a straight build.
I do have a cross compile toolchain setup, but haven't built for Win yet, before I find out would could be causing such high build size. Everything (at least with a superficial look see (animated godot logo on a single scene and exported to a final release build)) works just fine etc.
I'm looking at the snap shots and I'm seeing about 50MB for the standard build sans templates. That's a significant reduction.
Command that I am using (for the smaller build) is: scons -j8 platform=x11 target=release_debug use_lto=yes
For the export template, I remove the j flag and add bits=64 and change target accordingly if it's debug or release. Just for 64 bits. The same would go for Win and I would do a WASM template, but only after it's determine why such a huge build.
Thanks for the help.