Emscripten: Clang fastcomp incoming (version 1.37.26) being built with gdb, leading to huge files

Created on 3 Jan 2018  路  3Comments  路  Source: emscripten-core/emscripten

The /clang/fastcomp folder was unusually huge with this version at 25GB, compared with 1GB for the master branch. When looking into the binaries and compile_commands.json file, it seems that emsdk was automatically compiling everything with debugging information. Stripping the files in /bin of debug headers greatly decreased file sizes. I'm currently at 6GB. I think the size can be decreased a lot more by removing debug from compilation by default?

Important

Most helpful comment

I think the emsdk builds incoming from source with debug symbols by default, it assumes most people want a development build (while binary builds are non-debug, and I guess master too). @juj ?

I think we should change that, since incoming is basically what we recommend people use all the time now, so all builds should be non-debug by default.

All 3 comments

I think the emsdk builds incoming from source with debug symbols by default, it assumes most people want a development build (while binary builds are non-debug, and I guess master too). @juj ?

I think we should change that, since incoming is basically what we recommend people use all the time now, so all builds should be non-debug by default.

The history has been that incoming branch builds with CMake's RelWithDebInfo mode, which is CMake's intended "for developers" configuration, and master branch and tags build with Release mode, which is CMake's intended "for end users" configuration. I agree that there's multiple roles of developers ("developers of emscripten itself" vs "other developers who just use emscripten") that this is tripping up too many people, and they don't notice to add a --build=Release when they do a build of incoming, so changed to build Release in all cases in the above commit.

Great, thanks @juj !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HolgerStrauss picture HolgerStrauss  路  4Comments

lormuc picture lormuc  路  4Comments

nemequ picture nemequ  路  4Comments

ShawZG picture ShawZG  路  4Comments

nerddan picture nerddan  路  4Comments