Clang llvm very long complication time on cygwin

Hi, I compiled llvm and clang on my cygwin env using CC = gcc-4 and CXX = g ++ - 4 flags, since gcc 3.4.x does not seem to compile llvm clang at all. But my question is about the time to make a list. I pick it up from 8pm in the evening and right now its 1:35 AM. Also, the size of my build directory exceeded 8 gigabytes. And still I see

llvm[5]: Linking Debug+Asserts executable clang-format 

This is normal? Can I somehow do it faster?

+4
source share
3 answers

Here are some statistics

Compiler: GCC 4.5.3 Clang, LLVM: 3.2

  • Debugging + Assert assembly took me about 8 hours to build with a complete assembly larger than 11 gigabytes.

  • The + assert release takes only 1 hour with 800 megabytes of build-only.

Also to build Release (configure with - enable-optimized ) I used make with -j 4 . But I doubt very much that the long compilation time was mainly related to the debug build, as was warned by the build process itself.

 Note: Debug build can be 10 times slower than an optimized build 
+5
source

I suspect this is due to Cygwin. You should be able to create them using MS Visual Studio, and some using Mingw.

0
source

What you see is pretty much expected. LLVM / clang are written in C ++. So, there is a ton of debugging information. Linker has a very difficult time trying to bring everything together.

On Linux, the usual suggestion is to try gold instead of ld. This usually speeds up everything tenfold.

0
source

All Articles