[llvm-dev] Unusual file size for libs

vivek pandya via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 2 23:02:03 PST 2016


*Vivek Pandya*


On Sun, Jan 3, 2016 at 1:30 AM, via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Send llvm-dev mailing list submissions to
>         llvm-dev at lists.llvm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> or, via email, send a message with subject or body 'help' to
>         llvm-dev-request at lists.llvm.org
>
> You can reach the person managing the list at
>         llvm-dev-owner at lists.llvm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of llvm-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Unusual file size for libs (Joerg Sonnenberger via llvm-dev)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 2 Jan 2016 17:43:30 +0100
> From: Joerg Sonnenberger via llvm-dev <llvm-dev at lists.llvm.org>
> To: llvm-dev at lists.llvm.org
> Subject: Re: [llvm-dev] Unusual file size for libs
> Message-ID: <20160102164330.GA28983 at britannica.bec.de>
> Content-Type: text/plain; charset=us-ascii
>
> On Thu, Dec 31, 2015 at 09:53:27AM +0530, vivek pandya via llvm-dev wrote:
> > > > Hello,
> > > >
> > > > I am building llvm and clang with following options
> > > -*DLIBCLANG_BUILD_STATIC=ON
> > > > -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_OSX_SYSROOT=`xcrun
> > > > --show-sdk-path` *
> > > > Here I want to use libclang with OS X application and minimum
> deployment
> > > > target for my app is 10.10 . But this build command generates around
> 7 GB
> > > > of libs. This is unusual. For example normal build will generate
> > > > libLLVMCodeGen.a of size 4 MB but with above mentioned Cmake option
> it
> > > > generates 25 MB . Is it due to I am building on 10.11 OS X and
> minimum
> > > > required target is set to 10.10 ?
> > > > Please explain .
> > >
> > > Have you disabled debugging?
> > >
> >
> > No build type is debug but previously when I didn't pass
> >  -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_OSX_SYSROOT=`xcrun options ,
> > with Debug build type size is very less. 7 GB is very unusual.
> > http://llvm.org/docs/GettingStarted.html according to this guide even
> with
> > Debug build type total size could go about 3 GB .
>
> Well, for the build on Linux I certainly see 7GB w/ and 1GB w/o debug
> symbols for the whole build directory -- that's with shared library.
> For libLLVMCodeGen.so, it is 4MB vs 85MB. Compressed debug information
> or differences in the unification can make some difference, but I am not
> surprised by 25MB at all.
>

For me only lib folder is about 7 GB. I think I should try again with these
option disabled, but actually our team wants to ship libclang static libs
with OS X app. We also want minimum deployment target 10.10 other wise
XCode gives too many warnings. Should we build libclang on OS X 10.10. ?

-Vivek

>
> Joerg
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> llvm-dev mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
> ------------------------------
>
> End of llvm-dev Digest, Vol 139, Issue 2
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160103/b20eaf76/attachment.html>


More information about the llvm-dev mailing list