On Tue, Dec 17, 2013 at 08:45:13AM +0400, Konstantin Serebryany wrote: > Indeed, the compile time is dominated by asan_interceptors.cc: > % touch ~/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc > % date; ninja libclang_rt.asan-x86_64.a libclang_rt.asan-i386.a ; date > Tue Dec 17 08:39:38 MSK 2013 > [4/4] Linking CXX static library > lib/clang/3.5/lib/linux/libclang_rt.asan-i386.a > Tue Dec 17 08:39:42 MSK 2013 > > But I think that 4 seconds for one file (+link time) is reasonable enough.
I bet this is just a combination of slow CPU, non release compiler (i.e. not --enable-checking=release, with lots of extra asserts) and building 4 copies of it rather than 1 (or 2?) - -fPIC/non-pic times {x86_64,i686}. Anyway, if I look at -ftime-report, there is nothing obviously too slow, var-tracking is the worst with taking ~ 18% of wall time, RTL sharing verification 4%, tree verifiers 4%+7%, RA 5%, RTL PRE 4%, parser, GC, cfg verifier, df live, tree PRE each about 3%. Jakub