Faild to build clang with ninja -


there problem when i've tried build clang ninja.i've executed commands 1 after link:
http://clang.llvm.org/docs/libastmatcherstutorial.html
after running ninja tutorial says "okay.now we’ll build clang!" takes 2 hours build half of objects , after os stuck , couldn't move cursor.i did job on both laptop , pc result same.what attract attention that, size of folder huge (18.3gb).

is there way solve problem?

i have answered same question on stackoverflow here. suggest deeper search in future before asking same question.

including information here in case link lost. happening building clang in debug mode (that's default) lot of debug information being generated each compilation unit file sizes becoming big.

the solution turn off debug info that's been attached default. not going debug clang, won't need it. instead of doing this

cmake -g ninja ../llvm -dllvm_build_tests=on 

what should is

cmake -g ninja ../llvm -dllvm_build_tests=on -dcmake_build_type=release 

all other steps remain same.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -