[cfe-dev] Proposal: Enable BUILD_SHARED_LIBS=ON by default for debug build.

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 29 01:50:18 PST 2016


Hi Yin,

I second David's words. I use shared libs myself on debug builds, but
static builds with gold on a local disk is pretty feasible. Before I
used gold, I had to have 16GB of RAM on my laptop, now I need less
than 8GB for static builds.


On 28 January 2016 at 23:58, Yin Ma via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> It is O.K. I just hope BUILD_SHARED_LIBS=ON is tested when a patch is
> merged. Yesterday, I found the tip failed to build with ON. Today, tip is
> O.K to build in shared linking.

This is a different matter, and as David said, one that may not be
*that* critical, given to the number of people that use shared libs on
debug builds.

Chances are that ToT is ok now because someone fixed whatever the bug
was, and not because of sheer luck. Don't worry too much about it.

I see no reason to turn shared libs on by default on debug builds,
given that it's just one command line option in CMake. Whatever the
default state of that flag is, some people will have to have it,
others won't. If you change the default, you'll force *everyone* to
change their flags for no reason.

cheers,
--renato

PS: Life is short, don't build stuff over NFS. :)



More information about the cfe-dev mailing list