[llvm-dev] Why do we static link all llvm libraries in every executable?
serge guelton via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 25 11:15:39 PST 2016
On Mon, Jan 25, 2016 at 07:16:20PM +0100, Joerg Sonnenberger via llvm-dev wrote:
> On Mon, Jan 25, 2016 at 10:13:35AM -0800, Yin Ma via llvm-dev wrote:
> > If we separate several shared libraries something like
> > libclang.so, libllvm.so and let all executables and llvmgold.so just
> > linked with .so. A lot of space could be saved and
> > loading performance could be improved.
>
> There is a build option to do exactly that. It comes at a significant
> price for startup, e.g. clang will take 10x as long for building a small
> example.
Namely BUILD_SHARED_LIBS=ON
I find it very useful for dev builds!
More information about the llvm-dev
mailing list