[llvm-dev] Size of produced binaries when compiling llvm & clang sources

whitequark via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 27 13:38:56 PDT 2018


On 2018-04-27 16:00, Roman Lebedev via llvm-dev wrote:
> On Fri, Apr 27, 2018 at 6:21 PM, Manuel Yguel via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>> Dear llvm developpers,
>> I followed the tutorial to build llvm and clang provided here:
>> https://clang.llvm.org/get_started.html
>> 
>> The sources are in sync with subversion repository, and I ended up 
>> with more
>> than 30GB of binaries in llvm/bin as shown at the end of this message.
> You probably built the debug version, with debug info.
> If you do not want that, you could either specify 
> `-DCMAKE_BUILD_TYPE=Release`,
> or modify/pass `CFLAGS`/`CXXFLAGS` so that no debuginfo is generated.

Better yet, build with -DLLVM_USE_SPLIT_DWARF=ON 
-DLLVM_BUILD_LLVM_DYLIB=ON.

-- 
whitequark


More information about the llvm-dev mailing list