Looks like this doesn't work on Mac:<div><br></div><div><br><span style="color:rgb(34,34,34);font-size:14px">ld: unknown option: --gc-sections</span><br style="color:rgb(34,34,34);font-size:14px"><span style="color:rgb(34,34,34);font-size:14px">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span></div><div><font color="#222222"><span style="font-size:14px"><br></span></font></div><div><font color="#222222"><span style="font-size:14px"><br></span></font>On Sunday, February 18, 2018,  <<a href="mailto:subversion@hamsterrepublic.com">subversion@hamsterrepublic.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2018-02-18 23:58:20 -0800 (Sun, 18 Feb 2018)<br>
452<br>
scons: Reduce game/custom.exe size by 1MB by compiling with --gc-sections<br>
<br>
Measured on a gengcc=1 debug=0 build with MXE (mingw-w64).<br>
Mainly, this cuts out most of libstdc++, which we statically link. So the effect<br>
isn't dramatic on other platforms.<br>
<br>
I now measure game.exe as 3MB and custom.exe as 3.5MB. Of that, 600KB is<br>
symbol information, unfortunately a large amount of that is from libstdc++,<br>
because ld doesn't delete symbols for GC'd sections.<br>
---<br>
U   wip/SConscript<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
</blockquote></div>